Skip to content

error messages: filter out generic errors on the same line where specific error happen #99

@cscheid

Description

@cscheid

Case in point:

$ echo "Bad apostrophes' cause errors" | cargo run
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.05s
     Running `/Users/cscheid/repos/github/cscheid/kyoto/target/debug/quarto-markdown-pandoc`
Error: Parse error
   ╭─[<stdin>:1:17]
   │
 1 │ Bad apostrophes' cause errors
   │                 ┬
   │                 ╰── unexpected character or token here
───╯

Error: [Q-2-7] Unclosed Single Quote
   ╭─[<stdin>:1:30]
   │
 1 │ Bad apostrophes' cause errors
   │                ┬             ┬
   │                ╰──────────────── This is the opening quote. If you need an apostrophe, escape it with a backslash.
   │                              │
   │                              ╰── I reached the end of the block before finding a closing "'" for the quote.
───╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions