Struct cargo::util::errors::CliError [−][src]
Expand description
The CLI error is the error type used at Cargo’s CLI-layer.
All errors from the lib side of Cargo will get wrapped with this error. Other errors (such as command-line argument validation) will create this directly.
Fields
error: Option<Error>
The error to display. This can be None
in rare cases to exit with a
code without displaying a message. For example cargo run -q
where
the resulting process exits with a nonzero code (on Windows), or an
external subcommand that exits nonzero (we assume it printed its own
message).
exit_code: i32
The process exit code.