rename dav::XmlError

This commit is contained in:
Lennart
2025-01-23 18:17:55 +01:00
parent 0f9f98e6ed
commit a3acfb8969
3 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ pub enum Error {
PropReadOnly,
#[error(transparent)]
XmlDeserializationError(#[from] rustical_xml::XmlError),
XmlError(#[from] rustical_xml::XmlError),
#[error(transparent)]
IOError(#[from] std::io::Error),
@@ -33,7 +33,7 @@ impl actix_web::error::ResponseError for Error {
Self::NotFound => StatusCode::NOT_FOUND,
Self::BadRequest(_) => StatusCode::BAD_REQUEST,
Self::Unauthorized => StatusCode::UNAUTHORIZED,
Self::XmlDeserializationError(_) => StatusCode::BAD_REQUEST,
Self::XmlError(_) => StatusCode::BAD_REQUEST,
Error::PropReadOnly => StatusCode::CONFLICT,
Self::IOError(_) => StatusCode::INTERNAL_SERVER_ERROR,
}