diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-11-16 15:55:42 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-11-17 16:43:38 +0900 |
commit | de345d3464a718b9d620ed68129f0c097957925a (patch) | |
tree | 89cd64474f6d443b0b037c9a89c22a5eacee1e2a /src | |
parent | mount: add "-G" as shortcut for "--property=CollectMode=inactive-or-failed" (diff) | |
download | systemd-de345d3464a718b9d620ed68129f0c097957925a.tar.gz systemd-de345d3464a718b9d620ed68129f0c097957925a.tar.bz2 systemd-de345d3464a718b9d620ed68129f0c097957925a.zip |
mount: show which argument is invalid
Diffstat (limited to 'src')
-rw-r--r-- | src/mount/mount-tool.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 3a659654c..7bd40613c 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -340,11 +340,11 @@ static int parse_argv(int argc, char *argv[]) { r = path_make_absolute_cwd(u, &p); if (r < 0) - return log_error_errno(r, "Failed to make path absolute: %m"); + return log_error_errno(r, "Failed to make path %s absolute: %m", u); arg_mount_what = canonicalize_file_name(p); if (!arg_mount_what) - return log_error_errno(errno, "Failed to canonicalize path: %m"); + return log_error_errno(errno, "Failed to canonicalize path %s: %m", p); } else { arg_mount_what = strdup(argv[optind]); if (!arg_mount_what) @@ -364,11 +364,11 @@ static int parse_argv(int argc, char *argv[]) { r = path_make_absolute_cwd(argv[optind+1], &p); if (r < 0) - return log_error_errno(r, "Failed to make path absolute: %m"); + return log_error_errno(r, "Failed to make path %s absolute: %m", argv[optind+1]); arg_mount_where = canonicalize_file_name(p); if (!arg_mount_where) - return log_error_errno(errno, "Failed to canonicalize path: %m"); + return log_error_errno(errno, "Failed to canonicalize path %s: %m", p); } else { arg_mount_where = strdup(argv[optind+1]); |