From b4f052a05ab66d78290892382f33f20593001064 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Feb 2014 02:11:18 +0100 Subject: kill: fix error return --- src/core/dbus-kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-kill.c b/src/core/dbus-kill.c index f3cfb226e8..025945a23a 100644 --- a/src/core/dbus-kill.c +++ b/src/core/dbus-kill.c @@ -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; -- cgit v1.2.3