From 6aab10ee589d8ab5ed2bdc9f8e90bcc02f7b5ccb Mon Sep 17 00:00:00 2001 From: st170001 Date: Wed, 14 Feb 2024 21:13:57 +0100 Subject: [PATCH] Improved error message, nr. 2 --- src/authentication.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentication.rs b/src/authentication.rs index 59c153e..3e8b3a0 100644 --- a/src/authentication.rs +++ b/src/authentication.rs @@ -25,7 +25,7 @@ impl TryFrom<&HeaderMap> for AuthorizedUserHeader { return Ok(authenticate_user_header); } } - Err(Error::new("Authorized-User header could not be parsed.")) + Err(Error::new("Authentication failed. Authorized-User header is not set or could not be parsed.")) } }