mirror of https://github.com/helix-editor/helix
Rephrase unclear bail message.
parent
47547e94ad
commit
cb0c72880e
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue