diff options
Diffstat (limited to 'src/fail.rs')
-rw-r--r-- | src/fail.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fail.rs b/src/fail.rs index 1aa1d42..80865e0 100644 --- a/src/fail.rs +++ b/src/fail.rs @@ -52,6 +52,8 @@ pub enum HError { WrongWidgetError{got: String, wanted: String}, #[fail(display = "Strip Prefix Error: {}", error)] StripPrefixError{#[cause] error: std::path::StripPrefixError}, + #[fail(display = "INofify failed: {}", error)] + INotifyError{#[cause] error: notify::Error}, } impl HError { @@ -154,3 +156,10 @@ impl From<std::path::StripPrefixError> for HError { HError::StripPrefixError{error: error} } } + +impl From<notify::Error> for HError { + fn from(error: notify::Error) -> Self { + dbg!(&error); + HError::INotifyError{error: error} + } +} |