summaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-10 16:58:58 +0200
committerHampusM <hampus@hampusmat.com>2022-09-10 16:58:58 +0200
commit4b2228d758d0962dd181b8af93cdfcb8e6a78c6e (patch)
tree7aaef8f7ec7ec935f4958d6cf80299547e925d59 /src/errors
parentc71ff70ffec328935b9ca4492e313b4a480d7ec7 (diff)
refactor: add auth prompt handler errors
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/auth.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/errors/auth.rs b/src/errors/auth.rs
index a165e05..b11021c 100644
--- a/src/errors/auth.rs
+++ b/src/errors/auth.rs
@@ -4,11 +4,19 @@
#[derive(Debug, thiserror::Error)]
pub enum AuthPromptHandlerError
{
- /// HTTP server failed to bind to a address.
- #[error("HTTP server failed to bind to address")]
+ /// Web server failed to bind to a address.
+ #[error("Web server failed to bind to address")]
BindAddressFailed,
/// Invalid address.
#[error("Invalid address")]
InvalidAddress,
+
+ /// Web server failed.
+ #[error("Web server failed")]
+ WebServerFailed(#[from] hyper::Error),
+
+ /// No authentication code was received.
+ #[error("No authentication code was received")]
+ NoAuthCodeReceived,
}