Add error message when receiving a faulty request

This commit is contained in:
Valentin Tolmer 2021-05-09 13:26:28 +02:00
parent 8dd55195f5
commit 2416eede6f

View File

@ -40,6 +40,7 @@ where
.limit(4096) .limit(4096)
.error_handler(|err, _req| { .error_handler(|err, _req| {
// create custom error response // create custom error response
log::error!("API error: {}", err);
actix_web::error::InternalError::from_response( actix_web::error::InternalError::from_response(
err, err,
HttpResponse::Conflict().finish().into(), HttpResponse::Conflict().finish().into(),