Blop.
This commit is contained in:
@@ -76,7 +76,7 @@ impl ClientError for DomainError {
|
||||
impl ClientError for ExtractorError {
|
||||
fn client_response(&self) -> (StatusCode, Cow<'_, str>) {
|
||||
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::Json(error) => (StatusCode::BAD_REQUEST, error.to_string().into()),
|
||||
Self::Path(error) => (StatusCode::BAD_REQUEST, error.to_string().into()),
|
||||
|
||||
@@ -17,7 +17,7 @@ pub use query::*;
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum ExtractorError {
|
||||
#[error(transparent)]
|
||||
Authorization(#[from] auth::AuthError),
|
||||
Auth(#[from] auth::AuthError),
|
||||
|
||||
#[error(transparent)]
|
||||
Form(#[from] form::FormError),
|
||||
|
||||
Reference in New Issue
Block a user