mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
analyze: update log message
This commit is contained in:
parent
490c5a37cb
commit
e95a86c79e
@ -179,9 +179,9 @@ static int verify_documentation(Unit *u, bool check_man) {
|
|||||||
k = show_man_page(*p + 4, true);
|
k = show_man_page(*p + 4, true);
|
||||||
if (k != 0) {
|
if (k != 0) {
|
||||||
if (k < 0)
|
if (k < 0)
|
||||||
log_unit_error_errno(u, r, "Can't show %s: %m", *p);
|
log_unit_error_errno(u, k, "Can't show %s: %m", *p + 4);
|
||||||
else {
|
else {
|
||||||
log_unit_error_errno(u, r, "man %s command failed with code %d", *p + 4, k);
|
log_unit_error(u, "Command 'man %s' failed with code %d", *p + 4, k);
|
||||||
k = -ENOEXEC;
|
k = -ENOEXEC;
|
||||||
}
|
}
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user