diff options
author | Sam Tay <samctay@pm.me> | 2022-08-22 18:02:16 -0700 |
---|---|---|
committer | Sam Tay <samctay@pm.me> | 2022-08-22 18:20:50 -0700 |
commit | 29815c2fabc4e691fcf94fd26dea22a0ca81aaf4 (patch) | |
tree | c95b42d7f065759042aa887604075937688c70e0 /src/error.rs | |
parent | a5c3a48b421dd75075531937e60e32008c3c3b97 (diff) |
Dont block tokio task
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 3 |
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}")] |