Skip to content

Commit

Permalink
upgrade-nix: don't double quote path on error
Browse files Browse the repository at this point in the history
the format error already adds quotes.

(cherry picked from commit ccaa4c2)
  • Loading branch information
Mic92 authored and mergify[bot] committed Dec 15, 2024
1 parent e467269 commit 51166bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/upgrade-nix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct CmdUpgradeNix : MixDryRun, StoreCommand

if (where.filename() != "bin" ||
!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)))
throw Error("directory '%s' is not in the Nix store", userEnv);
Expand Down

0 comments on commit 51166bb

Please sign in to comment.