[systemd-commits] src/bus-driverd
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Dec 24 09:43:57 PST 2013
src/bus-driverd/bus-driverd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4e6a9570b698b335c6f59ec3556dfb3e95817d75
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 24 18:42:38 2013 +0100
bus: fix return message if StartServiceByName() in the driver fails due
to non-existing service
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 8888a07..57023ec 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -695,7 +695,7 @@ static int driver_start_service_by_name(sd_bus *bus, sd_bus_message *m, void *us
return r;
if (!t || !t[0] || t[1])
- return -EIO;
+ return sd_bus_error_setf(error, SD_BUS_ERROR_SERVICE_UNKNOWN, "Bus name %s not found.", name);
r = sd_bus_call_method(
bus,
More information about the systemd-commits
mailing list