summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-markdown/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-markdown/src/lib.rs')
-rw-r--r--bin/core/imag-markdown/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/core/imag-markdown/src/lib.rs b/bin/core/imag-markdown/src/lib.rs
index 1a8610b5..38303be6 100644
--- a/bin/core/imag-markdown/src/lib.rs
+++ b/bin/core/imag-markdown/src/lib.rs
@@ -36,7 +36,7 @@
extern crate clap;
#[macro_use] extern crate log;
-extern crate failure;
+#[macro_use] extern crate anyhow;
extern crate resiter;
extern crate libimagerror;
@@ -45,9 +45,9 @@ extern crate libimagstore;
use std::io::Write;
-use failure::Error;
-use failure::err_msg;
-use failure::Fallible as Result;
+use anyhow::Error;
+
+use anyhow::Result;
use resiter::AndThen;
use resiter::Map;
use resiter::IterInnerOkOrElse;
@@ -72,11 +72,11 @@ impl ImagApplication for ImagMarkdown {
let iter = rt
.ids::<crate::ui::PathProvider>()?
- .ok_or_else(|| err_msg("No ids supplied"))?
+ .ok_or_else(|| anyhow!("No ids supplied"))?
.into_iter()
.map(Ok)
.into_get_iter(rt.store())
- .map_inner_ok_or_else(|| err_msg("Entry does not exist but is in store. This is a BUG, please report!"));
+ .map_inner_ok_or_else(|| anyhow!("Entry does not exist but is in store. This is a BUG, please report!"));
if only_links {
debug!("Printing only links");