From 74717582ac3ef113cc7c714140dd6909442fd27f Mon Sep 17 00:00:00 2001 From: Arash Outadi Date: Sun, 5 Jul 2020 10:42:37 -0700 Subject: [PATCH] Slightly nicer "rm" message (#2113) * maybe this was root issue * quotes * formatting --- crates/nu-cli/src/shell/filesystem_shell.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/shell/filesystem_shell.rs b/crates/nu-cli/src/shell/filesystem_shell.rs index 91c1a1fa63..2deb25d5d6 100644 --- a/crates/nu-cli/src/shell/filesystem_shell.rs +++ b/crates/nu-cli/src/shell/filesystem_shell.rs @@ -607,7 +607,8 @@ impl Shell for FilesystemShell { } 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)) } else { let val = format!("deleted {:}", f.to_string_lossy()).into();