aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-21 13:55:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-21 13:55:45 +0200
commit94b6103c6c3475e3bf10eb905d504a5d239305b7 (patch)
tree12f2ab0906a3208c43a9fa8da713d6f0661c7e78 /tests
parentde74476b431ce6fab4632a5e94844384acc6e678 (diff)
Improve diagnostics
Diffstat (limited to 'tests')
-rw-r--r--tests/type/json/testscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/type/json/testscript b/tests/type/json/testscript
index 6dd6316..6beaf5d 100644
--- a/tests/type/json/testscript
+++ b/tests/type/json/testscript
@@ -91,6 +91,7 @@
o = [json] '{"one":1, "two":}'
EOI
error: invalid json value in variable o: invalid json input: unexpected byte '}' in value
+ <stdin>:1:5: info: variable o value is assigned here
EOE
: diagnostics-duplicate-member
@@ -99,6 +100,7 @@
o = [json] one@1 one@2
EOI
error: invalid json value in variable o: duplicate json object member 'one'
+ <stdin>:1:5: info: variable o value is assigned here
EOE
}
@@ -277,6 +279,7 @@
print $s
EOI
error: invalid json value in variable s: unable to append array to string
+ <stdin>:3:6: info: variable s value is assigned here
EOE
}