Send an error on bad request
This commit is contained in:
parent
d9195ef0af
commit
204d8d7999
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ impl IntoResponse for AppError {
|
|||
// Log error.
|
||||
error!("{:?}", self.0);
|
||||
|
||||
StatusCode::BAD_REQUEST.into_response()
|
||||
(StatusCode::BAD_REQUEST, self.0.to_string()).into_response()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue