diff options
author | Silvan Mosberger <contact@infinisil.com> | 2019-10-02 23:11:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 23:11:41 +0200 |
commit | 2b1e2f2e975e594bbb991b191357e292c1d775b1 (patch) | |
tree | 8811f5446ef580db9d6c86321602b74a71ca7c8d /lib | |
parent | f9b2528866c3d313dad731350dbac1b8978ae930 (diff) | |
parent | ebb136da9f4e743c8c1f873e9d85840559127265 (diff) |
Merge pull request #69746 from Infinisil/rem-opt-usage-message
lib.mkRemovedOptionModule: Show replacement for option usage too
Diffstat (limited to 'lib')
-rw-r--r-- | lib/modules.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index 00c7712487bd..71672c7d112b 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -591,6 +591,7 @@ rec { { options, ... }: { options = setAttrByPath optionName (mkOption { visible = false; + apply = x: throw "The option `${showOption optionName}' can no longer be used since it's been removed. ${replacementInstructions}"; }); config.assertions = let opt = getAttrFromPath optionName options; in [{ |