mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
Improve error message for option that is not defined and has now default value.
This commit is contained in:
parent
9404b2cc12
commit
4278f778b4
@ -309,7 +309,7 @@ rec {
|
|||||||
let opt = option.decl; in
|
let opt = option.decl; in
|
||||||
opt.apply (
|
opt.apply (
|
||||||
if isNotDefined then
|
if isNotDefined then
|
||||||
opt.default or (throw "Not defined.")
|
opt.default or (throw "Option `${addName name}' not defined and does not have a default value.")
|
||||||
else opt.merge defs
|
else opt.merge defs
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user