mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
address @link2xt comment
This commit is contained in:
@@ -36,9 +36,6 @@ pub enum Error {
|
|||||||
InvalidMsgId,
|
InvalidMsgId,
|
||||||
#[fail(display = "Watch folder not found {:?}", _0)]
|
#[fail(display = "Watch folder not found {:?}", _0)]
|
||||||
WatchFolderNotFound(String),
|
WatchFolderNotFound(String),
|
||||||
|
|
||||||
#[fail(display = "error {:?}", _0)]
|
|
||||||
Other(String),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Result<T> = std::result::Result<T, Error>;
|
pub type Result<T> = std::result::Result<T, Error>;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ impl From<crate::error::Error> for Error {
|
|||||||
|
|
||||||
impl From<Error> for crate::error::Error {
|
impl From<Error> for crate::error::Error {
|
||||||
fn from(err: Error) -> crate::error::Error {
|
fn from(err: Error) -> crate::error::Error {
|
||||||
crate::error::Error::Other(err.to_string())
|
crate::error::Error::Message(err.to_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ impl JobThread {
|
|||||||
Err(Error::WatchFolderNotFound("not-set".to_string()))
|
Err(Error::WatchFolderNotFound("not-set".to_string()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => Err(crate::error::Error::Other(err.to_string())),
|
Err(err) => Err(crate::error::Error::Message(err.to_string())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user