mirror of
https://github.com/Xevion/banner.git
synced 2025-12-06 07:14:21 -06:00
fix: disable poor error snippet
This commit is contained in:
@@ -9,10 +9,8 @@ pub fn parse_json_with_context<T: serde::de::DeserializeOwned>(body: &str) -> Re
|
||||
Ok(value) => Ok(value),
|
||||
Err(err) => {
|
||||
let (line, column) = (err.line(), err.column());
|
||||
let snippet = build_error_snippet(body, line, column, 80);
|
||||
Err(anyhow::anyhow!(
|
||||
"{err} at line {line}, column {column}\nSnippet:\n{snippet}",
|
||||
))
|
||||
// let snippet = build_error_snippet(body, line, column, 80);
|
||||
Err(anyhow::anyhow!("{err} at line {line}, column {column}",))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user