Skip to content

Commit 397f38f

Browse files
authored
chore: return more detailed error message to HTTP API (#874)
1 parent 6d673c6 commit 397f38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl IntoResponse for ApiError {
4747
fn into_response(self) -> Response {
4848
debug!("Internal server error:\n{:?}", self.err);
4949
let error_response = ErrorResponse {
50-
error: self.err.to_string(),
50+
error: format!("{:?}", self.err),
5151
};
5252
(self.status_code, Json(error_response)).into_response()
5353
}

0 commit comments

Comments
 (0)