diff options
author | John Kelly | 2023-05-10 19:35:43 +0000 |
---|---|---|
committer | GitHub | 2023-05-10 19:35:43 +0000 |
commit | 87da58578fdcacfe1d2de3d96bf47621c47c15c0 (patch) | |
tree | aeadff66126ccb12624575573c63b04a05bbcb67 | |
parent | 92c328c088ae818338237d7f11644ba079c54648 (diff) |
Add better error message for file save failure due to parent not existing (#7014)
Fixes #5229
-rw-r--r-- | helix-view/src/document.rs | 2 |
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)"); } } } |