summaryrefslogtreecommitdiff
path: root/src/bus-driverd/bus-driverd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-24 18:42:38 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-24 18:42:38 +0100
commit4e6a9570b698b335c6f59ec3556dfb3e95817d75 (patch)
treeefbc147221d9da9b68576e3dcf40bbbdc2e73fa7 /src/bus-driverd/bus-driverd.c
parent56e61788c5270af99646bde353abc8b1d54ad71f (diff)
bus: fix return message if StartServiceByName() in the driver fails due
to non-existing service
Diffstat (limited to 'src/bus-driverd/bus-driverd.c')
-rw-r--r--src/bus-driverd/bus-driverd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 8888a07082..57023ec877 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,