From c09e85ba8552f676c0a3b549da03c44f7d75f22a Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 8 Feb 2022 21:31:54 +0100 Subject: [PATCH] feat(core): log when modulo exits with non-zero code. Fix #944 --- espanso/src/gui/modulo/manager.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/espanso/src/gui/modulo/manager.rs b/espanso/src/gui/modulo/manager.rs index 9f7ed51..a860e5d 100644 --- a/espanso/src/gui/modulo/manager.rs +++ b/espanso/src/gui/modulo/manager.rs @@ -105,6 +105,13 @@ impl ModuloManager { 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() { Ok(output.to_string()) } else {