Skip to content

Commit

Permalink
fix: send generic error message in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Jan 15, 2025
1 parent 6aae7cb commit 7a3f70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl IntoResponse for AppError {
tracing::error!("An error occured: {}", self.0);

BackendResponse::<()>::error(
format!("Internal error: {}", self.0),
format!("An internal server error occured. Please try again later."),
StatusCode::INTERNAL_SERVER_ERROR,
)
.into_response()
Expand Down

0 comments on commit 7a3f70d

Please sign in to comment.