mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
ref: throwError -> doThrowError
Follow somewhat the nixpkgs conventions for bool flags
This commit is contained in:
parent
b29d3a11b2
commit
806a3d759e
3 changed files with 4 additions and 5 deletions
|
|
@ -33,7 +33,7 @@ in
|
|||
default = "default";
|
||||
};
|
||||
|
||||
throwError = mkOption {
|
||||
doThrowError = mkOption {
|
||||
description = "Whether to throw error";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ let
|
|||
modules = modulesWithCommonOptions;
|
||||
};
|
||||
in
|
||||
if testing.throwError then evaled'
|
||||
if testing.doThrowError then evaled'
|
||||
else if (builtins.tryEval evaled'.config.test.assertions).success
|
||||
then evaled' else null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue