aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-select-err.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-fail-select-err.err.exp')
-rw-r--r--tests/functional/lang/eval-fail-select-err.err.exp23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-select-err.err.exp b/tests/functional/lang/eval-fail-select-err.err.exp
new file mode 100644
index 000000000..70ee50737
--- /dev/null
+++ b/tests/functional/lang/eval-fail-select-err.err.exp
@@ -0,0 +1,23 @@
+error:
+ … while evaluating the attribute 'src.meta'
+ at /pwd/lang/eval-fail-select-err.nix:2:3:
+ 1| let
+ 2| somepkg.src = throw "invalid foo bar";
+ | ^
+ 3| in somepkg.src.meta
+
+ … while evaluating 'somepkg.src' to select 'meta' on it
+ at /pwd/lang/eval-fail-select-err.nix:3:4:
+ 2| somepkg.src = throw "invalid foo bar";
+ 3| in somepkg.src.meta
+ | ^
+ 4|
+
+ … caused by explicit throw
+ at /pwd/lang/eval-fail-select-err.nix:2:17:
+ 1| let
+ 2| somepkg.src = throw "invalid foo bar";
+ | ^
+ 3| in somepkg.src.meta
+
+ error: invalid foo bar