amethyst_cli/
error.rs

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        /// Don't have a template matching this version of the `amethyst` crate
15        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        /// Failed to fetch `amethyst` crate version from crates.io
21        FetchVersionFailure {
22            description("Failed to fetch latest version of amethyst")
23        }
24
25        /// The fetched crates.io JSON is not valid
26        InvalidCratesIoJson {
27            description("The JSON fetched from crates.io is invalid")
28        }
29    }
30}