Enum perseus_cli::errors::ErrorKind [−][src]
pub enum ErrorKind {
Show 19 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),
RemoveArtifactsFailed(Option<String>, String),
MovePkgDirFailed(String),
ThreadWaitFailed,
GitignoreEjectUpdateFailed(String),
EjectionWriteFailed(String),
CleanAfterEjection,
// 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: StringFor when build artifacts either couldn’t be removed or the directory couldn’t be recreated.
MovePkgDirFailed(String)For when moving the pkg/ directory to dist/pkg/ fails.
Tuple Fields of MovePkgDirFailed
0: StringFor when an error occurs while trying to wait for a thread.
GitignoreEjectUpdateFailed(String)For when updating the user’s gitignore for ejection fails.
Tuple Fields of GitignoreEjectUpdateFailed
0: StringEjectionWriteFailed(String)For when writing the file that signals that we’ve ejected fails.
Tuple Fields of EjectionWriteFailed
0: StringFor when the user tries to run clean after they’ve ejected. That command deletes the subcrates, which shouldn’t happen
after an ejection (they’ll likely have customized things).
Implementations
A string describing the error kind.