aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorJohn Kelly2023-05-10 19:35:43 +0000
committerGitHub2023-05-10 19:35:43 +0000
commit87da58578fdcacfe1d2de3d96bf47621c47c15c0 (patch)
treeaeadff66126ccb12624575573c63b04a05bbcb67 /helix-view/src
parent92c328c088ae818338237d7f11644ba079c54648 (diff)
Add better error message for file save failure due to parent not existing (#7014)
Fixes #5229
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 11b9ef0e..27f69d50 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -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)");
}
}
}