summaryrefslogtreecommitdiff
path: root/server/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/errors.rs')
-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!({