diff --git a/crates/nu-command/src/filesystem/save.rs b/crates/nu-command/src/filesystem/save.rs index fa14572987..e52234dfa3 100644 --- a/crates/nu-command/src/filesystem/save.rs +++ b/crates/nu-command/src/filesystem/save.rs @@ -461,7 +461,7 @@ fn open_file(path: &Path, span: Span, append: bool) -> Result }; file.map_err(|e| ShellError::GenericError { - error: "Permission denied".into(), + error: format!("Problem with [{}], Permission denied", path.display()), msg: e.to_string(), span: Some(span), help: None,