mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 12:58:28 +00:00
save progress: Move from serde::Serialize to XmlSerialize
This commit is contained in:
@@ -24,6 +24,9 @@ pub enum Error {
|
||||
|
||||
#[error(transparent)]
|
||||
XmlSerializationError(#[from] quick_xml::SeError),
|
||||
|
||||
#[error(transparent)]
|
||||
IOError(#[from] std::io::Error),
|
||||
}
|
||||
|
||||
impl actix_web::error::ResponseError for Error {
|
||||
@@ -36,6 +39,7 @@ impl actix_web::error::ResponseError for Error {
|
||||
Self::XmlDeserializationError(_) => StatusCode::BAD_REQUEST,
|
||||
Self::XmlSerializationError(_) => StatusCode::BAD_REQUEST,
|
||||
Error::PropReadOnly => StatusCode::CONFLICT,
|
||||
Self::IOError(_) => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user