summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-timetrack/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/domain/imag-timetrack/src/lib.rs')
-rw-r--r--bin/domain/imag-timetrack/src/lib.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/domain/imag-timetrack/src/lib.rs b/bin/domain/imag-timetrack/src/lib.rs
index d03489e8..3f0791d6 100644
--- a/bin/domain/imag-timetrack/src/lib.rs
+++ b/bin/domain/imag-timetrack/src/lib.rs
@@ -43,7 +43,8 @@ extern crate filters;
extern crate itertools;
extern crate prettytable;
extern crate kairos;
-#[macro_use] extern crate failure;
+#[macro_use] extern crate anyhow;
+extern crate failure;
extern crate resiter;
extern crate libimagerror;
@@ -76,8 +77,8 @@ use crate::week::week;
use crate::year::year;
use clap::App;
-use failure::Fallible as Result;
-use failure::err_msg;
+use anyhow::Result;
+
use libimagrt::runtime::Runtime;
use libimagrt::application::ImagApplication;
@@ -107,7 +108,7 @@ impl ImagApplication for ImagTimetrack {
if rt.handle_unknown_subcommand("imag-bookmark", other, rt.cli())?.success() {
Ok(())
} else {
- Err(err_msg("Failed to handle unknown subcommand"))
+ Err(anyhow!("Failed to handle unknown subcommand"))
}
},
}