diff options
Diffstat (limited to 'bin/core/imag-store/src/get.rs')
-rw-r--r-- | bin/core/imag-store/src/get.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/core/imag-store/src/get.rs b/bin/core/imag-store/src/get.rs index c1e4410c..9cfe982e 100644 --- a/bin/core/imag-store/src/get.rs +++ b/bin/core/imag-store/src/get.rs @@ -19,8 +19,8 @@ use std::path::PathBuf; -use failure::Fallible as Result; -use failure::err_msg; +use anyhow::Result; + use libimagrt::runtime::Runtime; use libimagstore::storeid::StoreId; @@ -36,7 +36,7 @@ pub fn get(rt: &Runtime) -> Result<()> { debug!("path = {:?}", path); match rt.store().get(path.clone())? { - None => Err(err_msg("No entry found")), + None => Err(anyhow!("No entry found")), Some(entry) => { print_entry(rt, scmd, entry)?; rt.report_touched(&path) |