pull/13516/merge
Calliope 2025-06-14 23:57:52 +03:00 committed by GitHub
commit ebd2c8cb1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -968,7 +968,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()
} }