(err: &DscError)
| 1406 | } |
| 1407 | |
| 1408 | fn get_failure_from_error(err: &DscError) -> Option<Failure> { |
| 1409 | match err { |
| 1410 | DscError::CommandExit(_resource, exit_code, reason) => { |
| 1411 | Some(Failure { |
| 1412 | message: reason.to_string(), |
| 1413 | exit_code: *exit_code, |
| 1414 | }) |
| 1415 | }, |
| 1416 | DscError::CommandExitFromManifest(_resource, exit_code, reason) => { |
| 1417 | Some(Failure { |
| 1418 | message: reason.to_string(), |
| 1419 | exit_code: *exit_code, |
| 1420 | }) |
| 1421 | }, |
| 1422 | _ => None, |
| 1423 | } |
| 1424 | } |
no outgoing calls
no test coverage detected