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 Schuyler Mortimer committed Jul 10, 2024
1 parent d896765 commit 6a3d39e
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 6a3d39e

Please sign in to comment.