systemctl: unit_file_find_fragment() doesn't log about errors, hence do it in the caller

This commit is contained in:
Lennart Poettering
2021-01-14 15:03:57 +01:00
parent 1842c1b2ab
commit b420e6f0ce
+1 -1
View File
@@ -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);