From ba61dfd69504ec6263a9dee9931d93adeb6f3142 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 7 Jul 2025 21:52:08 +0200 Subject: Initialize repository --- test/testdata/eval-fail-toJSON.err.exp | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 test/testdata/eval-fail-toJSON.err.exp (limited to 'test/testdata/eval-fail-toJSON.err.exp') 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 @@ +error: + … while calling the 'toJSON' builtin + at /pwd/lang/eval-fail-toJSON.nix:1:1: + 1| builtins.toJSON { + | ^ + 2| a.b = [ + + … while evaluating attribute 'a' + at /pwd/lang/eval-fail-toJSON.nix:2:3: + 1| builtins.toJSON { + 2| a.b = [ + | ^ + 3| true + + … while evaluating attribute 'b' + at /pwd/lang/eval-fail-toJSON.nix:2:3: + 1| builtins.toJSON { + 2| a.b = [ + | ^ + 3| true + + … while evaluating list element at index 3 + at /pwd/lang/eval-fail-toJSON.nix:2:3: + 1| builtins.toJSON { + 2| a.b = [ + | ^ + 3| true + + … while evaluating attribute 'c' + at /pwd/lang/eval-fail-toJSON.nix:7:7: + 6| { + 7| c.d = throw "hah no"; + | ^ + 8| } + + … while evaluating attribute 'd' + at /pwd/lang/eval-fail-toJSON.nix:7:7: + 6| { + 7| c.d = throw "hah no"; + | ^ + 8| } + + … while calling the 'throw' builtin + at /pwd/lang/eval-fail-toJSON.nix:7:13: + 6| { + 7| c.d = throw "hah no"; + | ^ + 8| } + + error: hah no -- cgit v1.2.3