You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
967 B
29 lines
967 B
/*! `error-chain` boilerplate and custom `Error` types */
|
|
// Copyright 2020, Marcel Schneider <marcel@webschneider.org>
|
|
|
|
// Create the Error, ErrorKind, ResultExt, and Result types
|
|
error_chain! {
|
|
foreign_links{
|
|
Io(::std::io::Error) #[doc = "Link to a `std::io::Error` type."];
|
|
}
|
|
errors{
|
|
NoGitRootFound {
|
|
description("no git root found"),
|
|
}
|
|
TemplateNotFound(t: String) {
|
|
description("could not find template"),
|
|
display("could not find a template for {}", t),
|
|
}
|
|
TemplateNoDownloadUrl(name: String) {
|
|
description("template has no download url"),
|
|
display("template {} has no download url", name)
|
|
}
|
|
TemplateNoContent {
|
|
description("template contains no content that could be used or written. try to `load_content` first.")
|
|
}
|
|
NoShellProvided {
|
|
description("no shell provided"),
|
|
}
|
|
}
|
|
|
|
}
|