1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

bus: fix return message if StartServiceByName() in the driver fails due

to non-existing service
This commit is contained in:
Lennart Poettering 2013-12-24 18:42:38 +01:00
parent 56e61788c5
commit 4e6a9570b6

View File

@ -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,