summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-store/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-store/src/lib.rs')
-rw-r--r--bin/core/imag-store/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/core/imag-store/src/lib.rs b/bin/core/imag-store/src/lib.rs
index 4cdd7936..4b065756 100644
--- a/bin/core/imag-store/src/lib.rs
+++ b/bin/core/imag-store/src/lib.rs
@@ -39,7 +39,7 @@ extern crate clap;
extern crate toml;
extern crate resiter;
#[cfg(test)] extern crate toml_query;
-#[macro_use] extern crate failure;
+#[macro_use] extern crate anyhow;
extern crate libimagrt;
extern crate libimagstore;
@@ -55,8 +55,8 @@ extern crate libimagutil;
use libimagrt::application::ImagApplication;
use libimagrt::runtime::Runtime;
-use failure::Fallible as Result;
-use failure::err_msg;
+use anyhow::Result;
+
mod create;
mod delete;
@@ -99,12 +99,12 @@ impl ImagApplication for ImagStore {
if rt.handle_unknown_subcommand("imag-store", other, rt.cli())?.success() {
Ok(())
} else {
- Err(format_err!("Subcommand failed"))
+ Err(anyhow!("Subcommand failed"))
}
},
}
} else {
- Err(err_msg("No command"))
+ Err(anyhow!("No command"))
}
}