diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-07-11 12:48:16 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-07-11 13:03:52 +0200 |
commit | 8014460c4dbf26d6f962c01920b2c25fc00e0d03 (patch) | |
tree | 4fad240637c258d519f2b7595d4e0e9ff01f2ffe /lib/tests/modules.sh | |
parent | 8f700580b984290adefa4b32ce1abafda04af6cf (diff) | |
download | nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar.gz nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar.bz2 nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar.lz nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar.xz nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.tar.zst nixlib-8014460c4dbf26d6f962c01920b2c25fc00e0d03.zip |
lib.mergeModules: Add context to error message
Diffstat (limited to 'lib/tests/modules.sh')
-rwxr-xr-x | lib/tests/modules.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index f5f0701c63a4..50f24c09ca40 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -207,7 +207,7 @@ checkConfigOutput '^"foo"$' config.submodule.foo ./declare-submoduleWith-special ## shorthandOnlyDefines config behaves as expected checkConfigOutput '^true$' config.submodule.config ./declare-submoduleWith-shorthand.nix ./define-submoduleWith-shorthand.nix checkConfigError 'is not of type `boolean' config.submodule.config ./declare-submoduleWith-shorthand.nix ./define-submoduleWith-noshorthand.nix -checkConfigError "You're trying to define a value of type \`bool'\n\s*rather than an attribute set for the option" config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-shorthand.nix +checkConfigError "In module ..*define-submoduleWith-shorthand.nix., you're trying to define a value of type \`bool'\n\s*rather than an attribute set for the option" config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-shorthand.nix checkConfigOutput '^true$' config.submodule.config ./declare-submoduleWith-noshorthand.nix ./define-submoduleWith-noshorthand.nix ## submoduleWith should merge all modules in one swoop |