From 5c1b0df40e344fbb841cc82ff324c668dbd59609 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 22 Aug 2022 15:31:10 +0200 Subject: Fix generic error response --- server/src/errors.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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!({ -- cgit v1.2.3-18-g5258