aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-07 17:25:27 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-12 15:47:09 +0200
commitebc024df2287085d48ed6194aa756fd70c07f76c (patch)
treeced4e49829e4f462be1ec11f2014cbcb876c30cb /src/libstore/globals.cc
parent268ecf5b3f3efd4e2a1fd78d088bdc69c27b6c7e (diff)
Show hint how to enable experimental features
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r--src/libstore/globals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index a0a2d850e..bee94cbd8 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -130,7 +130,7 @@ bool Settings::isExperimentalFeatureEnabled(const std::string & name)
void Settings::requireExperimentalFeature(const std::string & name)
{
if (!isExperimentalFeatureEnabled(name))
- throw Error("experimental Nix feature '%s' is disabled", name);
+ throw Error("experimental Nix feature '%1%' is disabled; use '--experimental-features %1%' to override", name);
}
bool Settings::isWSL1()