forked from lix-project/lix
nix why-depends: Fix misleading message
This commit is contained in:
parent
94eb5fad76
commit
dfe8f3ebc6
|
@ -82,7 +82,9 @@ struct CmdWhyDepends : SourceExprCommand
|
||||||
store->computeFSClosure({packagePath}, closure, false, false);
|
store->computeFSClosure({packagePath}, closure, false, false);
|
||||||
|
|
||||||
if (!closure.count(dependencyPath)) {
|
if (!closure.count(dependencyPath)) {
|
||||||
printError("'%s' does not depend on '%s'", package->what(), dependency->what());
|
printError("'%s' does not depend on '%s'",
|
||||||
|
store->printStorePath(packagePath),
|
||||||
|
store->printStorePath(dependencyPath));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue