Blop.
This commit is contained in:
@@ -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()),
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user