1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

analyze: update log message

This commit is contained in:
Yu Watanabe 2018-10-20 00:43:02 +09:00
parent 490c5a37cb
commit e95a86c79e

View File

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