convert all the document format error due to io to io::Error

This commit is contained in:
Tamo 2022-12-20 17:49:38 +01:00
parent 3040172562
commit c637bfba37
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 7 additions and 12 deletions

View file

@ -21,7 +21,8 @@ impl ErrorCode for Error {
match self {
Error::Io(e) => e.error_code(),
// These error come from an internal mis
// These errors either happens when creating a dump and don't need any error code.
// These error come from a internal bad deserialization.
Error::Serde(_) => Code::Internal,
Error::Uuid(_) => Code::Internal,