diff options
author | rabite <rabite@posteo.de> | 2019-02-26 22:31:33 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-02-26 22:31:33 +0100 |
commit | fd67621dee25990cca67766865ec3e991b5bf11e (patch) | |
tree | 8127263133383418f72471d5788552b0ad370bf0 /src/fail.rs | |
parent | bdbe8e07e35de1534718254d3de120de05858943 (diff) |
watch dirs for changes
Diffstat (limited to 'src/fail.rs')
-rw-r--r-- | src/fail.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fail.rs b/src/fail.rs index 9e3c5da..3e85e11 100644 --- a/src/fail.rs +++ b/src/fail.rs @@ -1,6 +1,8 @@ use failure; use failure::Fail; +use std::path::PathBuf; + pub type HResult<T> = Result<T, HError>; #[derive(Fail, Debug)] @@ -28,7 +30,9 @@ pub enum HError { #[fail(display = "Not ready yet!")] WillBeNotReady, #[fail(display = "No widget found")] - NoWidgetError + NoWidgetError, + #[fail(display = "Path: {:?} not in this directory: {:?}", path, dir)] + WrongDirectoryError{ path: PathBuf, dir: PathBuf } } impl From<std::io::Error> for HError { |