Merge pull request #7003 from SuperSandro2000/patch-1

Improve experimental-features error wording
This commit is contained in:
Robert Hensing 2023-09-27 23:26:27 +01:00 committed by GitHub
commit 11a3dc99b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ std::set<ExperimentalFeature> parseFeatures(const std::set<std::string> & rawFea
} }
MissingExperimentalFeature::MissingExperimentalFeature(ExperimentalFeature feature) MissingExperimentalFeature::MissingExperimentalFeature(ExperimentalFeature feature)
: Error("experimental Nix feature '%1%' is disabled; use '--extra-experimental-features %1%' to override", showExperimentalFeature(feature)) : Error("experimental Nix feature '%1%' is disabled; add '--extra-experimental-features %1%' to enable it", showExperimentalFeature(feature))
, missingFeature(feature) , missingFeature(feature)
{} {}