aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-21 23:30:19 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-21 23:30:19 +0200
commit4555531d2cb4856d6216907a22aac6797d097ad2 (patch)
tree9011bcdb37b8a314d4772bae905c4c920c88e565 /src/error.rs
parent0cd6ddac0833c7fc6d2fb8511073132006072148 (diff)
downloadgnix-4555531d2cb4856d6216907a22aac6797d097ad2.tar
gnix-4555531d2cb4856d6216907a22aac6797d097ad2.tar.bz2
gnix-4555531d2cb4856d6216907a22aac6797d097ad2.tar.zst
first steps torwards openid auth
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 636f226..c7290af 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -26,6 +26,8 @@ pub enum ServiceError {
BadUtf8(#[from] std::str::Utf8Error),
#[error("bad utf8")]
BadUtf82(#[from] std::string::FromUtf8Error),
+ #[error("bad utf8")]
+ BadUtf83(#[from] http::header::ToStrError),
#[error("bad path")]
BadPath,
#[error("bad auth")]
@@ -36,6 +38,8 @@ pub enum ServiceError {
UpgradeFailed,
#[error("{0}")]
Custom(String),
+ #[error("{0}")]
+ CustomStatic(&'static str),
#[error("parse int error: {0}")]
ParseIntError(#[from] std::num::ParseIntError),
#[error("invalid header")]