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:
parent
56e61788c5
commit
4e6a9570b6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user