mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
uucore/perms: add more information to an error message
This reverts part of https://github.com/uutils/coreutils/pull/2628, because (even though it got the test passing) it was the wrong bug fix.
This commit is contained in:
parent
a7f6b4420a
commit
435b7a22fb
1 changed files with 6 additions and 1 deletions
|
@ -358,7 +358,12 @@ impl ChownExecutor {
|
|||
Err(e) => {
|
||||
match self.verbosity.level {
|
||||
VerbosityLevel::Silent => (),
|
||||
_ => show_error!("cannot access '{}': {}", path.display(), strip_errno(&e)),
|
||||
_ => show_error!(
|
||||
"cannot {} '{}': {}",
|
||||
if follow { "dereference" } else { "access" },
|
||||
path.display(),
|
||||
strip_errno(&e)
|
||||
),
|
||||
}
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue