Skip to content
Snippets Groups Projects
Commit 7464f49c authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Print JSON decode errors for debugging

parent 381bc06c
Branches
No related tags found
No related merge requests found
......@@ -144,6 +144,7 @@ async fn main() -> std::io::Result<()> {
mime.type_() == mime::TEXT && mime.subtype() == mime::PLAIN
})
.error_handler(|err, _req| {
eprintln!("Error while decoding JSON: {:?}", err);
// create custom error response
error::InternalError::from_response(
err,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment