diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs new file mode 100644 index 0000000..7cb1886 --- /dev/null +++ b/src/errors.rs @@ -0,0 +1,18 @@ +use std; +use walkdir; + +quick_error! { + #[derive(Debug)] + pub enum RuntimeError { + Walkdir(err: walkdir::Error) { + from() + cause(err) + display("File enumeration error: {}", err) + } + Io(err: std::io::Error) { + from() + cause(err) + display("I/O error: {}", err) + } + } +} |