diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-11 12:04:37 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-11 12:04:37 +0200 |
| commit | 921b40cf9cb75c6412e2421130671b08dcf1ee13 (patch) | |
| tree | 817735ec1d2dabcbb0cd3d38f73f5e2772eb5300 /tests | |
| parent | 6483d3035bab4df2d644acb738974413977aaa37 (diff) | |
Forward third-party errors
Better to know something even if it isn't always formatted in the prettiest way
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compute/construct.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compute/data.typ | 10 | ||||
| -rw-r--r-- | tests/typ/visualize/image.typ | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ index ea9d2816..80e0876a 100644 --- a/tests/typ/compute/construct.typ +++ b/tests/typ/compute/construct.typ @@ -221,5 +221,5 @@ #datetime.today().display(" []") --- -// Error: 26-36 failed to format datetime in the requested format +// Error: 26-36 failed to format datetime (insufficient information) #datetime.today().display("[hour]") 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") diff --git a/tests/typ/visualize/image.typ b/tests/typ/visualize/image.typ index 60ce4f68..0e256eb8 100644 --- a/tests/typ/visualize/image.typ +++ b/tests/typ/visualize/image.typ @@ -58,7 +58,7 @@ A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B #image("./image.typ") --- -// Error: 2-25 failed to parse svg: found closing tag 'g' instead of 'style' in line 4 +// Error: 2-25 failed to parse SVG (found closing tag 'g' instead of 'style' in line 4) #image("/files/bad.svg") --- @@ -66,7 +66,7 @@ A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B #image.decode(`<svg xmlns="http://www.w3.org/2000/svg" height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg") --- -// Error: 2-168 failed to parse svg: missing root node +// Error: 2-168 failed to parse SVG (missing root node) #image.decode(`<svg height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg") --- @@ -78,5 +78,5 @@ A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B #image.decode(read("/files/tiger.jpg", encoding: none), format: "jpg", width: 80%) --- -// Error: 2-83 failed to decode image +// Error: 2-83 failed to decode image (Format error decoding Png: Invalid PNG signature.) #image.decode(read("/files/tiger.jpg", encoding: none), format: "png", width: 80%) |
