1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

upgrade-nix: don't double quote path on error

the format error already adds quotes.
This commit is contained in:
Jörg Thalheim 2024-12-15 21:04:26 +01:00
parent 4f831e2be5
commit ccaa4c259a

View file

@ -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);