Fix error message

This commit is contained in:
Eelco Dolstra 2018-02-27 16:58:31 +01:00
parent 4a000cbb39
commit 939cf4cceb
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -74,10 +74,10 @@ static void createLinks(const Path & srcDir, const Path & dstDir, int priority)
auto prevPriority = priorities[dstFile];
if (prevPriority == priority)
throw Error(format(
"Packages '%1%' and '%2%' have the same priority '%3%'"
"packages '%1%' and '%2%' have the same priority %3%; "
"use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' "
"to change the priority of one of the conflicting packages"
" ('0' being the highest priority)"
" (0 being the highest priority)"
) % srcFile % target % priority);
if (prevPriority < priority)
continue;