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 wes-adams committed Jul 3, 2023
1 parent 15adcc2 commit bb384b2
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 bb384b2

Please sign in to comment.