Enum perseus_cli::errors::ErrorKind [−][src]
pub enum ErrorKind {
Show 14 variants
Msg(String),
PrereqFailed(String, String, String),
CurrentDirUnavailable(String),
ExtractionFailed(Option<String>, String),
GitignoreUpdateFailed(String),
ManifestUpdateFailed(Option<String>, String),
GetUserManifestFailed(String),
RemoveBadDirFailed(Option<String>, String),
CmdExecFailed(String, String),
WatcherFailed(String, String),
NextStdoutLineNone,
GetServerExecutableFailed(String),
PortNotNumber(String),
MovePkgDirFailed(String),
// some variants omitted
}Expand description
The kind of an error.
Variants
Msg(String)A convenient variant for String.
Tuple Fields of Msg
0: StringFor when executing a prerequisite command fails.
For when the user’s curreent directory couldn’t be found.
For when extracting the subcrates failed.
GitignoreUpdateFailed(String)For when updating the user’s .gitignore fails
Tuple Fields of GitignoreUpdateFailed
0: StringFor when updating relative paths and package names in the manifest failed.
GetUserManifestFailed(String)For when we can’t get the user’s Cargo.toml file.
Tuple Fields of GetUserManifestFailed
0: StringFor when a partially-formed ‘.perseus/’ directory couldn’t be removed, but did exist.
For when executing a system command after preparation failed. This shouldn’t cause a directory deletion.
For when watching failes for changes failed.
For when the next line of the stdout of a command is None when it shouldn’t have been.
GetServerExecutableFailed(String)For when getting the path to the built executable for the server from the JSON build output failed.
Tuple Fields of GetServerExecutableFailed
0: StringPortNotNumber(String)For when getting the path to the built executable for the server from the JSON build output failed.
Tuple Fields of PortNotNumber
0: StringMovePkgDirFailed(String)For when moving the pkg/ directory to dist/pkg/ fails.
Tuple Fields of MovePkgDirFailed
0: StringImplementations
A string describing the error kind.