aboutsummaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-05-05 16:50:27 +0100
committertslil <tslil@posteo.de>2026-05-05 17:38:55 +0100
commitfbb8835cb73fd51e130f4e319290eeb44eadfcf5 (patch)
treed4ec3f120e3684e23461e8ee7b10c72b1ab65bd7 /src/parser.rs
parent9b3fe7ceb8aa0b0f174a17e6e13b5d325c974979 (diff)
don't use debug formatting for parser issues
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 31956bd..f205407 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -305,7 +305,7 @@ pub fn parse_result(src: &str) -> Result<Programme, String> {
let after = &src[off..(off + 40).min(src.len())];
Err(format!(
- "FAIL at {}:{} (offset {})\nexpected: {:#?}\n...{}⟨HERE⟩{}...",
+ "FAIL at {}:{} (offset {})\nexpected: {}\n...{}⟨HERE⟩{}...",
line, col, off, e.expected, before, after
))
}