aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/auth.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auth.rs b/src/auth.rs
index b5a9867..23ea668 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -129,6 +129,9 @@ impl Middleware<crate::MiniserveConfig> for Auth {
}
}
+/// Builds the unauthorized response body
+/// The reason why log_error_chain is optional is to handle cases where the auth pop-up appears and when the user clicks Cancel.
+/// In those case, we do not log the error to the terminal since it does not really matter.
fn build_unauthorized_response(
req: &HttpRequest<crate::MiniserveConfig>,
error: ContextualError,