Send an error on bad request

This commit is contained in:
Mo 2023-02-25 21:33:45 +01:00
parent d9195ef0af
commit 204d8d7999

View file

@ -12,7 +12,7 @@ impl IntoResponse for AppError {
// Log error. // Log error.
error!("{:?}", self.0); error!("{:?}", self.0);
StatusCode::BAD_REQUEST.into_response() (StatusCode::BAD_REQUEST, self.0.to_string()).into_response()
} }
} }