systemctl: unit_file_find_fragment() doesn't log about errors, hence do it in the caller
This commit is contained in:
@@ -520,7 +520,7 @@ int unit_find_paths(
|
||||
|
||||
r = unit_file_find_fragment(*cached_id_map, *cached_name_map, unit_name, &_path, &names);
|
||||
if (r < 0)
|
||||
return r;
|
||||
return log_error_errno(r, "Failed to find fragment for '%s': %m", unit_name);
|
||||
|
||||
if (_path) {
|
||||
path = strdup(_path);
|
||||
|
||||
Reference in New Issue
Block a user