1error_chain! {
2 foreign_links {
3 Io(::std::io::Error) #[doc = "IO error"];
4 VersionReq(::semver::ReqParseError) #[doc = "Could not parse version requirements"];
5 SemVer(::semver::SemVerError) #[doc = "Could not parse version"];
6 }
7
8 errors {
9 New(name: String) {
10 description("project creation failed")
11 display("project creation for project {:?} failed", name)
12 }
13
14 UnsupportedVersion(version: String) {
16 description("unsupported version of Amethyst requested")
17 display("This version of amethyst_tools does not support the requested version {:?}", version)
18 }
19
20 FetchVersionFailure {
22 description("Failed to fetch latest version of amethyst")
23 }
24
25 InvalidCratesIoJson {
27 description("The JSON fetched from crates.io is invalid")
28 }
29 }
30}