fix: disable poor error snippet

This commit is contained in:
2025-09-12 21:40:07 -05:00
parent dfc05a2789
commit 00cb209052

View File

@@ -9,10 +9,8 @@ pub fn parse_json_with_context<T: serde::de::DeserializeOwned>(body: &str) -> Re
Ok(value) => Ok(value), Ok(value) => Ok(value),
Err(err) => { Err(err) => {
let (line, column) = (err.line(), err.column()); let (line, column) = (err.line(), err.column());
let snippet = build_error_snippet(body, line, column, 80); // let snippet = build_error_snippet(body, line, column, 80);
Err(anyhow::anyhow!( Err(anyhow::anyhow!("{err} at line {line}, column {column}",))
"{err} at line {line}, column {column}\nSnippet:\n{snippet}",
))
} }
} }
} }