mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 21:20:23 +03:00
Add better error message for file save failure due to parent not existing (#7014)
Fixes #5229
This commit is contained in:
parent
92c328c088
commit
87da58578f
@ -808,7 +808,7 @@ impl Document {
|
||||
if force {
|
||||
std::fs::DirBuilder::new().recursive(true).create(parent)?;
|
||||
} else {
|
||||
bail!("can't save file, parent directory does not exist");
|
||||
bail!("can't save file, parent directory does not exist (use :w! to create it)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user