feat(core): log when modulo exits with non-zero code. Fix #944
This commit is contained in:
parent
e304192dbd
commit
c09e85ba85
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user