mirror of
https://github.com/Xevion/banner.git
synced 2025-12-06 09:14:24 -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),
|
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}",
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user