diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index fb89e2e0c..6ecfb72d6 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -968,7 +968,7 @@ impl Document { Some(path) => helix_stdx::path::canonicalize(path), None => { if self.path.is_none() { - bail!("Can't save with no path set!"); + bail!("Document has no path; please append a name or path to the save command."); } self.path.as_ref().unwrap().clone() }