Skip to content

Commit

Permalink
refactor: don't double-print the JSON path
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaka91 committed Jul 4, 2023
1 parent 6f0d782 commit 9f84893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl JsonExport {
)
.map_err(|e| {
let path = e.path().to_string();
eyre::Report::new(e).note(format!("JSON path: {path}"))
eyre::Report::new(e.into_inner()).note(format!("JSON path: {path}"))
})
}
}
Expand Down

0 comments on commit 9f84893

Please sign in to comment.