diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-15 20:09:50 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-15 20:09:50 +0200 |
commit | dfe8f3ebc6c5a3d96528794b8822536aac718046 (patch) | |
tree | c1dd771103f6ea57a88b7300757f1ac08c748033 /src/nix/why-depends.cc | |
parent | 94eb5fad76cd086e3f49329532f81083726f89b3 (diff) |
nix why-depends: Fix misleading message
Diffstat (limited to 'src/nix/why-depends.cc')
-rw-r--r-- | src/nix/why-depends.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/why-depends.cc b/src/nix/why-depends.cc index c39a0435d..55bb43f95 100644 --- a/src/nix/why-depends.cc +++ b/src/nix/why-depends.cc @@ -82,7 +82,9 @@ struct CmdWhyDepends : SourceExprCommand store->computeFSClosure({packagePath}, closure, false, false); 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; } |