aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-toJSON.err.exp
diff options
context:
space:
mode:
authorRutger Broekhoff2025-07-07 21:52:08 +0200
committerRutger Broekhoff2025-07-07 21:52:08 +0200
commitba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch)
treed6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/eval-fail-toJSON.err.exp
downloadverified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz
verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip
Initialize repository
Diffstat (limited to 'test/testdata/eval-fail-toJSON.err.exp')
-rw-r--r--test/testdata/eval-fail-toJSON.err.exp50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-toJSON.err.exp b/test/testdata/eval-fail-toJSON.err.exp
new file mode 100644
index 0000000..ad26771
--- /dev/null
+++ b/test/testdata/eval-fail-toJSON.err.exp
@@ -0,0 +1,50 @@
1error:
2 … while calling the 'toJSON' builtin
3 at /pwd/lang/eval-fail-toJSON.nix:1:1:
4 1| builtins.toJSON {
5 | ^
6 2| a.b = [
7
8 … while evaluating attribute 'a'
9 at /pwd/lang/eval-fail-toJSON.nix:2:3:
10 1| builtins.toJSON {
11 2| a.b = [
12 | ^
13 3| true
14
15 … while evaluating attribute 'b'
16 at /pwd/lang/eval-fail-toJSON.nix:2:3:
17 1| builtins.toJSON {
18 2| a.b = [
19 | ^
20 3| true
21
22 … while evaluating list element at index 3
23 at /pwd/lang/eval-fail-toJSON.nix:2:3:
24 1| builtins.toJSON {
25 2| a.b = [
26 | ^
27 3| true
28
29 … while evaluating attribute 'c'
30 at /pwd/lang/eval-fail-toJSON.nix:7:7:
31 6| {
32 7| c.d = throw "hah no";
33 | ^
34 8| }
35
36 … while evaluating attribute 'd'
37 at /pwd/lang/eval-fail-toJSON.nix:7:7:
38 6| {
39 7| c.d = throw "hah no";
40 | ^
41 8| }
42
43 … while calling the 'throw' builtin
44 at /pwd/lang/eval-fail-toJSON.nix:7:13:
45 6| {
46 7| c.d = throw "hah no";
47 | ^
48 8| }
49
50 error: hah no