1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-08 21:17:47 +03:00

systemctl: suggest -xe not -xn

https://bugzilla.redhat.com/show_bug.cgi?id=1150289
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-10-08 20:22:51 -04:00
parent 706d97503d
commit b923047d73

View File

@ -2350,18 +2350,18 @@ static int check_wait_response(WaitData *d) {
else if (streq(d->result, "canceled")) else if (streq(d->result, "canceled"))
log_error("Job for %s canceled.", strna(d->name)); log_error("Job for %s canceled.", strna(d->name));
else if (streq(d->result, "dependency")) else if (streq(d->result, "dependency"))
log_error("A dependency job for %s failed. See 'journalctl -xn' for details.", strna(d->name)); log_error("A dependency job for %s failed. See 'journalctl -xe' for details.", strna(d->name));
else if (!streq(d->result, "done") && !streq(d->result, "skipped")) { else if (!streq(d->result, "done") && !streq(d->result, "skipped")) {
if (d->name) { if (d->name) {
bool quotes; bool quotes;
quotes = chars_intersect(d->name, SHELL_NEED_QUOTES); quotes = chars_intersect(d->name, SHELL_NEED_QUOTES);
log_error("Job for %s failed. See \"systemctl status %s%s%s\" and \"journalctl -xn\" for details.", log_error("Job for %s failed. See \"systemctl status %s%s%s\" and \"journalctl -xe\" for details.",
d->name, d->name,
quotes ? "'" : "", d->name, quotes ? "'" : ""); quotes ? "'" : "", d->name, quotes ? "'" : "");
} else } else
log_error("Job failed. See \"journalctl -xn\" for details."); log_error("Job failed. See \"journalctl -xe\" for details.");
} }
} }