summaryrefslogtreecommitdiffstats
path: root/src/core/executor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/executor.c')
-rw-r--r--src/core/executor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/executor.c b/src/core/executor.c
index b2716ef..bd0c742 100644
--- a/src/core/executor.c
+++ b/src/core/executor.c
@@ -245,12 +245,13 @@ static int run(int argc, char *argv[]) {
log_exec_struct_errno(&context, &params, LOG_ERR, r,
"MESSAGE_ID=" SD_MESSAGE_SPAWN_FAILED_STR,
- LOG_EXEC_INVOCATION_ID(&params),
LOG_EXEC_MESSAGE(&params, "Failed at step %s spawning %s: %m",
status, command.path),
"EXECUTABLE=%s", command.path);
} else
- assert(exit_status == EXIT_SUCCESS); /* When 'skip' is chosen in the confirm spawn prompt */
+ /* r == 0: 'skip' is chosen in the confirm spawn prompt
+ * r > 0: expected/ignored failure, do not log at error level */
+ assert((r == 0) == (exit_status == EXIT_SUCCESS));
return exit_status;
}