diff --git a/debugger/Cargo.toml b/debugger/Cargo.toml index 5085c031..a1fc7e1b 100644 --- a/debugger/Cargo.toml +++ b/debugger/Cargo.toml @@ -27,7 +27,7 @@ reqwest = { version = "= 0.11.13", default-features = false, features = [ ] } rustyline = "10" serde_json = "1" -thiserror = "1" +thiserror = "2" [badges] codecov = { repository = "pest-parser/pest" } diff --git a/pest/Cargo.toml b/pest/Cargo.toml index 6ceaa508..a1eb8a51 100644 --- a/pest/Cargo.toml +++ b/pest/Cargo.toml @@ -28,7 +28,7 @@ miette-error = ["std", "pretty-print", "dep:miette", "dep:thiserror"] ucd-trie = { version = "0.1.5", default-features = false } serde = { version = "1.0.145", optional = true } serde_json = { version = "1.0.85", optional = true } -thiserror = { version = "1.0.37", optional = true } +thiserror = { version = "2", optional = true } memchr = { version = "2", optional = true } miette = { version = "7.2.0", optional = true, features = ["fancy"] } diff --git a/pest/src/error.rs b/pest/src/error.rs index 5b3e194e..c569353c 100644 --- a/pest/src/error.rs +++ b/pest/src/error.rs @@ -1170,6 +1170,7 @@ mod tests { assert_eq!( format!("{:?}", miette_error), [ + "", " \u{1b}[31m×\u{1b}[0m Failure to parse at Pos((2, 1))", " ╭────", " \u{1b}[2m1\u{1b}[0m │ def",