From e63c65ab7d944fb3a80f6c40bd0d98ec50b054c6 Mon Sep 17 00:00:00 2001 From: rabite Date: Mon, 11 Mar 2019 12:08:43 +0100 Subject: tagging files --- src/fail.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fail.rs') 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() -> HResult { Err(HError::PopupFinnished) } + pub fn tags_not_loaded() -> HResult { + Err(HError::TagsNotLoadedYetError) + } } pub trait ErrorLog where Self: Sized { -- cgit v1.2.3