Improve reporting of JSON parsing error

This commit is contained in:
silverpill 2022-10-24 21:19:48 +00:00
parent 518fb704c3
commit 295150361c

View file

@ -26,7 +26,7 @@ pub enum FetchError {
#[error(transparent)] #[error(transparent)]
RequestError(#[from] reqwest::Error), RequestError(#[from] reqwest::Error),
#[error("json parse error")] #[error("json parse error: {0}")]
JsonParseError(#[from] serde_json::Error), JsonParseError(#[from] serde_json::Error),
#[error(transparent)] #[error(transparent)]