diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-10-30 18:40:53 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-10-30 18:46:29 +0100 |
commit | fd2367b84973fa803e4d15c03b883495efafad53 (patch) | |
tree | c4a3faeb3e2b481f87f76314733486bd3a809cba /bin/domain/imag-timetrack/src/start.rs | |
parent | d7eda6c451db81225d091c5513600fd6004d0643 (diff) |
imag-timetrack: Move from error-chain to failure
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/domain/imag-timetrack/src/start.rs')
-rw-r--r-- | bin/domain/imag-timetrack/src/start.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/domain/imag-timetrack/src/start.rs b/bin/domain/imag-timetrack/src/start.rs index 6827bb30..abf18b93 100644 --- a/bin/domain/imag-timetrack/src/start.rs +++ b/bin/domain/imag-timetrack/src/start.rs @@ -20,10 +20,10 @@ use std::str::FromStr; use chrono::naive::NaiveDateTime; +use failure::Error; use libimagrt::runtime::Runtime; use libimagerror::trace::trace_error; -use libimagtimetrack::error::TimeTrackError as TTE; use libimagtimetrack::tag::TimeTrackingTag; use libimagtimetrack::timetrackingstore::TimeTrackStore; use libimagerror::trace::MapErrTrace; @@ -34,7 +34,7 @@ pub fn start(rt: &Runtime) -> i32 { let start = match cmd.value_of("start-time") { None | Some("now") => ::chrono::offset::Local::now().naive_local(), - Some(ndt) => match NaiveDateTime::from_str(ndt).map_err(TTE::from) { + Some(ndt) => match NaiveDateTime::from_str(ndt).map_err(Error::from) { Ok(ndt) => ndt, Err(e) => { trace_error(&e); |