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