Skip to content

Commit

Permalink
Add better error message for file save failure due to parent not exis…
Browse files Browse the repository at this point in the history
…ting (#7014)

Fixes #5229
  • Loading branch information
john-h-k authored May 10, 2023
1 parent 92c328c commit 87da585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
}
}
Expand Down

0 comments on commit 87da585

Please sign in to comment.