diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-20 19:49:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-20 19:49:47 +0200 |
| commit | 3760748fddd3b793c79c370398a9d4a3fc5afc04 (patch) | |
| tree | b1a615e510aa231cfe9757a9c0a35a375e32e3ba /tests/typ | |
| parent | 757a701c1aa2a6fb80033c7e75666661818da6f9 (diff) | |
Refactor error handling
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/code/import.typ | 2 | ||||
| -rw-r--r-- | tests/typ/graphics/image.typ | 6 | ||||
| -rw-r--r-- | tests/typ/utility/csv.typ | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/typ/code/import.typ b/tests/typ/code/import.typ index 2c27f135..0c0b6c08 100644 --- a/tests/typ/code/import.typ +++ b/tests/typ/code/import.typ @@ -47,7 +47,7 @@ --- // Some non-text stuff. -// Error: 16-37 failed to load source file (file is not valid utf-8) +// Error: 16-37 file is not valid utf-8 #import * from "../../res/rhino.png" --- diff --git a/tests/typ/graphics/image.typ b/tests/typ/graphics/image.typ index e64b6c45..3bb5bdd1 100644 --- a/tests/typ/graphics/image.typ +++ b/tests/typ/graphics/image.typ @@ -55,5 +55,9 @@ A #image("/res/tiger.jpg", height: 1cm, width: 80%) B #image("path/does/not/exist") --- -// Error: 8-21 failed to load image (unknown image format) +// Error: 8-21 unknown image format #image("./image.typ") + +--- +// Error: 8-22 failed to parse svg: found closing tag 'g' instead of 'style' in line 4 +#image("/res/bad.svg") diff --git a/tests/typ/utility/csv.typ b/tests/typ/utility/csv.typ index ab955ab0..146cafae 100644 --- a/tests/typ/utility/csv.typ +++ b/tests/typ/utility/csv.typ @@ -11,5 +11,5 @@ #csv("nope.csv") --- -// Error: 6-20 failed to load csv file (CSV error: record 2 (line: 3, byte: 8): found record with 3 fields, but the previous record has 2 fields) +// Error: 6-20 failed to parse csv file: found 3 instead of 2 fields in line 3 #csv("/res/bad.csv") |
