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
  • Loading branch information
john-h-k authored and Triton171 committed Jun 18, 2023
1 parent 97150a9 commit c9ad0b9
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 c9ad0b9

Please sign in to comment.