summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index 2e282ef04e..64438cd6d7 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -998,7 +998,7 @@ static int action_umount(
r = path_make_absolute_cwd(u, &a);
if (r < 0) {
- r2 = log_error_errno(r, "Failed to make path absolute: %m");
+ r2 = log_error_errno(r, "Failed to make path %s absolute: %m", argv[i]);
continue;
}
@@ -1010,7 +1010,7 @@ static int action_umount(
}
if (stat(p, &st) < 0)
- return log_error_errno(errno, "Can't stat %s: %m", p);
+ return log_error_errno(errno, "Can't stat %s (from %s): %m", p, argv[i]);
if (S_ISBLK(st.st_mode))
r = umount_by_device(bus, p);
@@ -1019,7 +1019,7 @@ static int action_umount(
else if (S_ISDIR(st.st_mode))
r = stop_mounts(bus, p);
else {
- log_error("Invalid file type: %s", p);
+ log_error("Invalid file type: %s (from %s)", p, argv[i]);
r = -EINVAL;
}