summaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/auth.rs b/src/routes/auth.rs
index 0b17ef4..64ada2b 100644
--- a/src/routes/auth.rs
+++ b/src/routes/auth.rs
@@ -58,7 +58,7 @@ pub async fn login(
};
let token= encode(&Header::default(), &claims, &state.api_key)
- .map_err(|_| RouteError::Internal("failed to encode jwt".into()))?;
+ .map_err(|e| RouteError::Internal(format!("failed to encode jwt: {e}")))?;
Ok(Json(LoginResponse { token }))
}