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/typ/visualize | |
| 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/typ/visualize')
| -rw-r--r-- | tests/typ/visualize/image.typ | 6 |
1 files changed, 3 insertions, 3 deletions
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%) |
