add log line
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Patrick Michl 2022-04-28 23:19:35 +02:00
parent b0895145de
commit 341c516fcb

View File

@ -62,8 +62,10 @@ impl IntoResponse for ApiError {
)),
)
.into_response()
},
ApiError::Generic(err) => (
}
ApiError::Generic(err) => {
tracing::error!("{}", err.to_string());
(
StatusCode::INTERNAL_SERVER_ERROR,
Json(ErrorResponse::new(
ErrorCode::Unknown,
@ -71,7 +73,8 @@ impl IntoResponse for ApiError {
None,
)),
)
.into_response(),
.into_response()
}
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}