Skip to content

Commit

Permalink
reactor: show original error when document parse fails
Browse files Browse the repository at this point in the history
Allows us to see the actual cause of these errors.
  • Loading branch information
psFried committed Oct 16, 2024
1 parent e6a78da commit 7780a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/derive/src/extract_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum Error {
Url(#[from] url::ParseError),
#[error("schema index")]
SchemaIndex(#[from] json::schema::index::Error),
#[error("failed to parse JSON document")]
#[error("failed to parse JSON document: {0:?}")]
Json(std::io::Error),
#[error("invalid document UUID: {value:?}")]
InvalidUuid { value: Option<serde_json::Value> },
Expand Down

0 comments on commit 7780a84

Please sign in to comment.