(&self)
| 19 | |
| 20 | impl 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 | |
| 34 | impl ExitCode for Error { |
no outgoing calls
no test coverage detected