Fix error message

This commit is contained in:
Eelco Dolstra
2018-03-02 14:32:00 +01:00
parent 4a000cbb39
commit 939cf4cceb
+2 -2
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;