chiark / gitweb /
kill: fix error return
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Feb 2014 01:11:18 +0000 (02:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Feb 2014 01:11:18 +0000 (02:11 +0100)
src/core/dbus-kill.c

index f3cfb22..025945a 100644 (file)
@@ -78,7 +78,7 @@ int bus_kill_context_set_transient_property(
                         return r;
 
                 if (sig <= 0 || sig >= _NSIG)
-                        return sd_bus_error_setf(error, "Signal %i out of range", sig);
+                        return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Signal %i out of range", sig);
 
                 if (mode != UNIT_CHECK) {
                         c->kill_signal = sig;