From 204d8d7999c04d0ab5b736b17f430ed3edf8e8c1 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 25 Feb 2023 21:33:45 +0100 Subject: [PATCH] Send an error on bad request --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 140598a..780864d 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -12,7 +12,7 @@ impl IntoResponse for AppError { // Log error. error!("{:?}", self.0); - StatusCode::BAD_REQUEST.into_response() + (StatusCode::BAD_REQUEST, self.0.to_string()).into_response() } }