summaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: af5af98a150bd1595a15cd27d2bdbe4b5f692833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error_chain! {
    errors {
        ConfigParseError(filename: String) {
            description("configuration file could not be parsed"),
            display("configuration file could not be parsed: '{}'", filename),
        }
        RegexParseError(regex: String) {
            description("regex could not be parsed"),
            display("regex not parsable: '{}'", regex),
        }
    }
}