MCPcopy Create free account
hub / github.com/corn-config/corn / get_exit_code

Method get_exit_code

cli/src/error.rs:21–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

19
20impl ExitCode for CornError {
21 fn get_exit_code(&self) -> i32 {
22 match self {
23 CornError::Io(_) => 3,
24 CornError::ParserError(_) => 1,
25 CornError::InputResolveError(_) => 2,
26 CornError::InvalidPathError(_) => 6,
27 CornError::InvalidSpreadError(_) => 7,
28 CornError::InvalidInterpolationError(_) => 8,
29 CornError::DeserializationError(_) => 5,
30 }
31 }
32}
33
34impl ExitCode for Error {

Callers 2

mainFunction · 0.80
handle_errFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected