Show hint how to enable experimental features

This commit is contained in:
Eelco Dolstra 2020-05-07 17:25:27 +02:00
parent 268ecf5b3f
commit ebc024df22
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

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