Rephrase unclear bail message.

pull/13516/head
c4lliope 2025-05-12 16:30:37 -04:00
parent 47547e94ad
commit cb0c72880e
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ impl Document {
Some(path) => helix_stdx::path::canonicalize(path), Some(path) => helix_stdx::path::canonicalize(path),
None => { None => {
if self.path.is_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() self.path.as_ref().unwrap().clone()
} }