summaryrefslogtreecommitdiffstats
path: root/src/fail.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-03-11 12:08:43 +0100
committerrabite <rabite@posteo.de>2019-03-11 12:08:43 +0100
commite63c65ab7d944fb3a80f6c40bd0d98ec50b054c6 (patch)
tree06ed1d6a0f8cb1a7b13a5b36591680b922abbf32 /src/fail.rs
parent5b9a150a10411dcc47bd6340aa33fa8423aaa2be (diff)
tagging files
Diffstat (limited to 'src/fail.rs')
-rw-r--r--src/fail.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fail.rs b/src/fail.rs
index 90def78..16a6028 100644
--- a/src/fail.rs
+++ b/src/fail.rs
@@ -54,6 +54,8 @@ pub enum HError {
StripPrefixError{#[cause] error: std::path::StripPrefixError},
#[fail(display = "INofify failed: {}", error)]
INotifyError{#[cause] error: notify::Error},
+ #[fail(display = "Tags not loaded yet")]
+ TagsNotLoadedYetError
}
impl HError {
@@ -73,6 +75,9 @@ impl HError {
pub fn popup_finnished<T>() -> HResult<T> {
Err(HError::PopupFinnished)
}
+ pub fn tags_not_loaded<T>() -> HResult<T> {
+ Err(HError::TagsNotLoadedYetError)
+ }
}
pub trait ErrorLog where Self: Sized {