summaryrefslogtreecommitdiffstats
path: root/bus/activation-helper-bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/activation-helper-bin.c')
-rw-r--r--bus/activation-helper-bin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/activation-helper-bin.c b/bus/activation-helper-bin.c
index 6b9ec1f5..248a86f7 100644
--- a/bus/activation-helper-bin.c
+++ b/bus/activation-helper-bin.c
@@ -56,7 +56,12 @@ convert_error_to_exit_code (DBusError *error)
if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_EXEC_FAILED))
return BUS_SPAWN_EXIT_CODE_EXEC_FAILED;
+ if (dbus_error_has_name (error, DBUS_ERROR_INVALID_ARGS))
+ return BUS_SPAWN_EXIT_CODE_INVALID_ARGS;
+
/* should we assert? */
+ fprintf(stderr, "%s: %s\n", error->name, error->message);
+
return BUS_SPAWN_EXIT_CODE_SETUP_FAILED;
}