mirror of
https://github.com/nushell/nushell.git
synced 2025-07-11 03:45:51 +02:00
Slightly nicer "rm" message (#2113)
* maybe this was root issue * quotes * formatting
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user