Earlier output did not give enough information to system admin to fix an
issue in /etc/fstab effectively.
$ sudo mount -a
mount: mount(2) failed: No such file or directory
Addresses: https://bugs.launchpad.net/bugs/
1557145
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
warnx(_("special device %s does not exist"), src);
} else {
errno = syserr;
- warn(_("mount(2) failed")); /* print errno */
+ if (tgt)
+ warn("%s: %s", _("mount(2) failed"), tgt);
+ else if (src)
+ warn("%s: %s", _("mount(2) failed"), src);
+ else
+ warn(_("mount(2) failed"));
}
break;
"(a path prefix is not a directory)"), src);
} else {
errno = syserr;
- warn(_("mount(2) failed")); /* print errno */
+ warn("%s: %s", _("mount(2) failed"), tgt);
}
break;