summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-store/src/create.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-03-08 12:06:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-03-08 12:06:42 +0100
commitcb9f6e7f46eb1a05071947d5f28bb1fe45313734 (patch)
tree6e5a8e08e5b204f202de335d412de3f69196ce12 /bin/core/imag-store/src/create.rs
parent00aa4df88edae1d5eeb3fb365af05f95bd0de3b4 (diff)
parent666193dfc26181b6606cb85de5389c4ed6ece5eb (diff)
Merge branch 'replace-failure-with-anyhow'
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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());