summaryrefslogtreecommitdiff
path: root/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 4f8bfed0..47aeefbd 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -1101,12 +1101,9 @@ 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;
}