mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
xml: Some work on errors
This commit is contained in:
@@ -14,8 +14,8 @@ impl ValueDeserialize for SyncLevel {
|
||||
"1" => Self::One,
|
||||
"Infinity" => Self::Infinity,
|
||||
_ => {
|
||||
return Err(rustical_xml::XmlError::Other(
|
||||
"Invalid sync-level".to_owned(),
|
||||
return Err(rustical_xml::XmlError::InvalidValue(
|
||||
rustical_xml::ParseValueError::Other("Invalid sync-level".to_owned()),
|
||||
))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user