Skip to content

Commit bc26240

Browse files
committed
Include reporting instructions in the app error
1 parent 4aca82a commit bc26240

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use crate::interactions::REPORT_TO;
2+
13
use axum::{
24
http::StatusCode,
35
response::{IntoResponse, Response},
@@ -20,7 +22,7 @@ impl IntoResponse for AppError {
2022
tracing::error!("{:?}", &self.0);
2123
(
2224
StatusCode::INTERNAL_SERVER_ERROR,
23-
format!("Something went wrong: {}", self.0),
25+
format!("Something went wrong: {}\n\n{REPORT_TO}", self.0),
2426
)
2527
.into_response()
2628
}

0 commit comments

Comments
 (0)