mirror of https://github.com/helix-editor/helix
Merge cb0c72880e
into 205e7ece70
commit
ebd2c8cb1c
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue