mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
upgrade-nix: don't double quote path on error
the format error already adds quotes.
(cherry picked from commit ccaa4c259a)
This commit is contained in:
parent
e467269a44
commit
51166bb388
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ struct CmdUpgradeNix : MixDryRun, StoreCommand
|
||||||
|
|
||||||
if (where.filename() != "bin" ||
|
if (where.filename() != "bin" ||
|
||||||
!hasSuffix(userEnv, "user-environment"))
|
!hasSuffix(userEnv, "user-environment"))
|
||||||
throw Error("directory '%s' does not appear to be part of a Nix profile", where);
|
throw Error("directory %s does not appear to be part of a Nix profile", where);
|
||||||
|
|
||||||
if (!store->isValidPath(store->parseStorePath(userEnv)))
|
if (!store->isValidPath(store->parseStorePath(userEnv)))
|
||||||
throw Error("directory '%s' is not in the Nix store", userEnv);
|
throw Error("directory '%s' is not in the Nix store", userEnv);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue