feat(core): log when modulo exits with non-zero code. Fix #944

This commit is contained in:
Federico Terzi 2022-02-08 21:31:54 +01:00
parent e304192dbd
commit c09e85ba85

View File

@ -105,6 +105,13 @@ impl ModuloManager {
error!("modulo reported an error: {}", error); error!("modulo reported an error: {}", error);
} }
if !child_output.status.success() {
error!(
"modulo exited with non-zero status code: {:?}",
child_output.status.code()
)
}
if !output.trim().is_empty() { if !output.trim().is_empty() {
Ok(output.to_string()) Ok(output.to_string())
} else { } else {