summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 2bcb899..cc15174 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -2,8 +2,11 @@ use std::path::PathBuf;
pub type Result<T, E = Error> = std::result::Result<T, E>;
+// TODO convert/remove this to just use anyhow
#[derive(thiserror::Error, Debug)]
pub enum Error {
+ #[error("{0}")]
+ Anyhow(#[from] anyhow::Error),
#[error("Termimad error: {0}")]
Termimad(#[from] termimad::Error),
#[error("Crossterm error: {0}")]