Skip to content

Commit

Permalink
Fix for exposed generic error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BHouwens committed Jun 13, 2024
1 parent f9828cc commit 9a09a57
Show file tree
Hide file tree
Showing 8 changed files with 208 additions and 267 deletions.
3 changes: 2 additions & 1 deletion src/api/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ pub async fn handle_rejection(err: Rejection) -> Result<impl Reply, Rejection> {
// This should not happen! All errors should be handled
error!("Unhandled API rejection: {:?}", err);
error.code = StatusCode::INTERNAL_SERVER_ERROR;
error.message = ApiErrorType::Generic(format!("Unhandled rejection: {err:?}"));
error.message =
ApiErrorType::Generic(format!("Unhandled rejection. Internal Server Error"));
}

Ok(common_error_reply(
Expand Down
Loading

0 comments on commit 9a09a57

Please sign in to comment.