1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
error_chain! { foreign_links { Fmt(::std::fmt::Error); Io(::std::io::Error); Tera(::tera::Error); } errors { ProjectDirErr(d: String) { description("Invalid project dir") display("Invalid project dir: '{}'", d) } TemplateDirErr(d: String) { description("Invalid template dir") display("Invalid template dir: '{}'", d) } SrcPathErr(d: String) { description("Invalid src path") display("Invalid src path: '{}'", d) } DstPathErr(d: String) { description("Invalid dst path") display("Invalid dst path: '{}'", d) } } }