summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-08-22 15:31:10 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-08-22 15:31:10 +0200
commit5c1b0df40e344fbb841cc82ff324c668dbd59609 (patch)
tree0580ddef1e7006a5d96160cc31254fb79454d8f4
parentbb67f4077c816b75678ca9846aeea2d6ee14fa5c (diff)
Fix generic error response
-rw-r--r--server/src/errors.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/errors.rs b/server/src/errors.rs
index 6fd0a61..b5f124b 100644
--- a/server/src/errors.rs
+++ b/server/src/errors.rs
@@ -12,7 +12,10 @@ pub enum Error {
impl IntoResponse for Error {
fn into_response(self) -> Response {
let (status, error_message) = match self {
- Error::Generic => (StatusCode::INTERNAL_SERVER_ERROR, "User not found"),
+ Error::Generic => (
+ StatusCode::INTERNAL_SERVER_ERROR,
+ "Generic error, can't find why",
+ ),
};
let body = Json(json!({