This commit is contained in:
parent
b0895145de
commit
341c516fcb
@ -62,8 +62,10 @@ impl IntoResponse for ApiError {
|
|||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
.into_response()
|
.into_response()
|
||||||
},
|
}
|
||||||
ApiError::Generic(err) => (
|
ApiError::Generic(err) => {
|
||||||
|
tracing::error!("{}", err.to_string());
|
||||||
|
(
|
||||||
StatusCode::INTERNAL_SERVER_ERROR,
|
StatusCode::INTERNAL_SERVER_ERROR,
|
||||||
Json(ErrorResponse::new(
|
Json(ErrorResponse::new(
|
||||||
ErrorCode::Unknown,
|
ErrorCode::Unknown,
|
||||||
@ -71,7 +73,8 @@ impl IntoResponse for ApiError {
|
|||||||
None,
|
None,
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
.into_response(),
|
.into_response()
|
||||||
|
}
|
||||||
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
|
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user