summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Vrancovich2023-03-14 16:43:21 +0000
committerGitHub2023-03-14 16:43:21 +0000
commitad855da12d2d0ef2b42a40f5258cce5ad1b7b0c9 (patch)
tree0a876a7062c4f8e2b6c258ff8076aca82cdcc7ce
parent3a4c3598d1a7071b2b0fe9a1bc13e5800aa11be1 (diff)
Improved file reload error message (#6274)
-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 19220f28..eca60026 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -776,7 +776,7 @@ impl Document {
let path = self
.path()
.filter(|path| path.exists())
- .ok_or_else(|| anyhow!("can't find file to reload from"))?
+ .ok_or_else(|| anyhow!("can't find file to reload from {:?}", self.display_name()))?
.to_owned();
let mut file = std::fs::File::open(&path)?;