summaryrefslogtreecommitdiff
path: root/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 47aeefbd..4f8bfed0 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -1101,9 +1101,12 @@ int utils::run_interactively(
LOG(level::DEBUG, "%s: couldn't create a child process", caller);
} else if (status == 127) {
LOG(level::DEBUG, "%s: couldn't run shell", caller);
- } else if (status != 0) {
- LOG(level::DEBUG, "%s: cmd = %s, returned %d", caller, command, status);
}
+ if (status != 0) {
+ LOG(level::DEBUG, "utils::run_interactively: "
+ "%s: cmd = %s, returned %d", caller, command, status);
+ }
+
return status;
}