Slightly nicer "rm" message (#2113)

* maybe this was root issue

* quotes

* formatting
This commit is contained in:
Arash Outadi 2020-07-05 10:42:37 -07:00 committed by GitHub
parent ee18f16378
commit 74717582ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,7 +607,8 @@ impl Shell for FilesystemShell {
} }
if let Err(e) = result { if let Err(e) = result {
let msg = format!("Could not delete because: {:}", e); let msg =
format!("Could not delete because: {:}\nTry '--trash' flag", e);
Err(ShellError::labeled_error(msg, e.to_string(), tag)) Err(ShellError::labeled_error(msg, e.to_string(), tag))
} else { } else {
let val = format!("deleted {:}", f.to_string_lossy()).into(); let val = format!("deleted {:}", f.to_string_lossy()).into();