This commit is contained in:
2026-10-26 09:17:38 +01:00
parent 33ee35ea56
commit 73616320bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ impl ClientError for DomainError {
impl ClientError for ExtractorError { impl ClientError for ExtractorError {
fn client_response(&self) -> (StatusCode, Cow<'_, str>) { fn client_response(&self) -> (StatusCode, Cow<'_, str>) {
match self { match self {
Self::Authorization(error) => error.client_response(), Self::Auth(error) => error.client_response(),
Self::Form(error) => (StatusCode::BAD_REQUEST, error.to_string().into()), Self::Form(error) => (StatusCode::BAD_REQUEST, error.to_string().into()),
Self::Json(error) => (StatusCode::BAD_REQUEST, error.to_string().into()), Self::Json(error) => (StatusCode::BAD_REQUEST, error.to_string().into()),
Self::Path(error) => (StatusCode::BAD_REQUEST, error.to_string().into()), Self::Path(error) => (StatusCode::BAD_REQUEST, error.to_string().into()),
+1 -1
View File
@@ -17,7 +17,7 @@ pub use query::*;
#[derive(Debug, thiserror::Error)] #[derive(Debug, thiserror::Error)]
pub enum ExtractorError { pub enum ExtractorError {
#[error(transparent)] #[error(transparent)]
Authorization(#[from] auth::AuthError), Auth(#[from] auth::AuthError),
#[error(transparent)] #[error(transparent)]
Form(#[from] form::FormError), Form(#[from] form::FormError),