This commit is contained in:
parent
b0895145de
commit
341c516fcb
@ -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(),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user