aboutsummaryrefslogtreecommitdiff
path: root/src/errors.rs
blob: 7cb18866dfa974edf34f3761b637ac223c63d11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
        }
    }
}