summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-store/src/create.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-store/src/create.rs')
-rw-r--r--bin/core/imag-store/src/create.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/core/imag-store/src/create.rs b/bin/core/imag-store/src/create.rs
index 4d13d444..d916d14d 100644
--- a/bin/core/imag-store/src/create.rs
+++ b/bin/core/imag-store/src/create.rs
@@ -25,8 +25,8 @@ use std::io::Read;
use clap::ArgMatches;
use toml::Value;
-use failure::Fallible as Result;
-use failure::err_msg;
+use anyhow::Result;
+
use libimagrt::runtime::Runtime;
use libimagstore::store::Entry;
@@ -88,7 +88,7 @@ fn create_from_cli_spec(rt: &Runtime, matches: &ArgMatches, path: &StoreId) -> R
fn create_from_source(rt: &Runtime, matches: &ArgMatches, path: &StoreId) -> Result<()> {
let content = matches
.value_of("from-raw")
- .ok_or_else(|| err_msg("No Commandline call"))
+ .ok_or_else(|| anyhow!("No Commandline call"))
.map(string_from_raw_src)?;
debug!("Content with len = {}", content.len());