address @link2xt comment

This commit is contained in:
holger krekel
2019-12-01 12:03:18 +01:00
parent c7bfdf5073
commit a770a42bc0
3 changed files with 2 additions and 5 deletions

View File

@@ -36,9 +36,6 @@ pub enum Error {
InvalidMsgId,
#[fail(display = "Watch folder not found {:?}", _0)]
WatchFolderNotFound(String),
#[fail(display = "error {:?}", _0)]
Other(String),
}
pub type Result<T> = std::result::Result<T, Error>;

View File

@@ -97,7 +97,7 @@ impl From<crate::error::Error> for Error {
impl From<Error> for crate::error::Error {
fn from(err: Error) -> crate::error::Error {
crate::error::Error::Other(err.to_string())
crate::error::Error::Message(err.to_string())
}
}

View File

@@ -113,7 +113,7 @@ impl JobThread {
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())),
}
}