summaryrefslogtreecommitdiff
path: root/tests/typ/compute/data.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-11 12:04:37 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-11 12:04:37 +0200
commit921b40cf9cb75c6412e2421130671b08dcf1ee13 (patch)
tree817735ec1d2dabcbb0cd3d38f73f5e2772eb5300 /tests/typ/compute/data.typ
parent6483d3035bab4df2d644acb738974413977aaa37 (diff)
Forward third-party errors
Better to know something even if it isn't always formatted in the prettiest way
Diffstat (limited to 'tests/typ/compute/data.typ')
-rw-r--r--tests/typ/compute/data.typ10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/compute/data.typ b/tests/typ/compute/data.typ
index c613c479..a8c79da1 100644
--- a/tests/typ/compute/data.typ
+++ b/tests/typ/compute/data.typ
@@ -27,7 +27,7 @@
#csv("nope.csv")
---
-// Error: 6-22 failed to parse csv file: found 3 instead of 2 fields in line 3
+// Error: 6-22 failed to parse CSV (found 3 instead of 2 fields in line 3)
#csv("/files/bad.csv")
---
@@ -38,7 +38,7 @@
#test(data.at(2).weight, 150)
---
-// Error: 7-24 failed to parse json file: syntax error in line 3
+// Error: 7-24 failed to parse JSON (expected value at line 3 column 14)
#json("/files/bad.json")
---
@@ -80,7 +80,7 @@
))
---
-// Error: 7-24 failed to parse toml file: expected `.`, `=`, index 15-16
+// Error: 7-24 failed to parse TOML (expected `.`, `=` at line 1 column 16)
#toml("/files/bad.toml")
---
@@ -98,7 +98,7 @@
#test(data.at("1"), "ok")
---
-// Error: 7-24 failed to parse yaml file: while parsing a flow sequence, expected ',' or ']' at line 2 column 1
+// Error: 7-24 failed to parse YAML (while parsing a flow sequence, expected ',' or ']' at line 2 column 1)
#yaml("/files/bad.yaml")
---
@@ -127,5 +127,5 @@
),))
---
-// Error: 6-22 failed to parse xml file: found closing tag 'data' instead of 'hello' in line 3
+// Error: 6-22 failed to parse XML (found closing tag 'data' instead of 'hello' in line 3)
#xml("/files/bad.xml")