mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 18:33:50 +01:00
Slightly nicer "rm" message (#2113)
* maybe this was root issue * quotes * formatting
This commit is contained in:
parent
ee18f16378
commit
74717582ac
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user