aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-12 10:38:00 +0100
committerGitHub <noreply@github.com>2021-11-12 10:38:00 +0100
commit44aed585386ae1180684d9f33af9f0c9a11926d4 (patch)
treec7f242c9ddfdae07c5d477b7eeb96b36b9c28f97
parentc78155b4366f2c76622bc2cf10d7b3bf4332ba0c (diff)
parentc1dea92dd6fb5c07127bcf43d8c76d8a59470d7a (diff)
Merge pull request #5540 from samueldr/fix/key-subcommand
nix key: Fix error message and don't require flakes
-rw-r--r--src/nix/sigs.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix/sigs.cc b/src/nix/sigs.cc
index 6a238efbe..3d659d6d2 100644
--- a/src/nix/sigs.cc
+++ b/src/nix/sigs.cc
@@ -218,8 +218,7 @@ struct CmdKey : NixMultiCommand
void run() override
{
if (!command)
- throw UsageError("'nix flake' requires a sub-command.");
- settings.requireExperimentalFeature(Xp::Flakes);
+ throw UsageError("'nix key' requires a sub-command.");
command->second->prepare();
command->second->run();
}