Skip to content

Commit

Permalink
AppError should return 500 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
datdo-msft authored Nov 6, 2024
1 parent db6ca7a commit 2e5cec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llgtrt/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct AppError(anyhow::Error);
impl IntoResponse for AppError {
fn into_response(self) -> Response {
(
StatusCode::BAD_REQUEST,
StatusCode::INTERNAL_SERVER_ERROR,
Json(json!({
"error": format!("{}", self.0),
})),
Expand Down

0 comments on commit 2e5cec1

Please sign in to comment.