diff options
author | Santiago Vrancovich | 2023-03-14 16:43:21 +0000 |
---|---|---|
committer | GitHub | 2023-03-14 16:43:21 +0000 |
commit | ad855da12d2d0ef2b42a40f5258cce5ad1b7b0c9 (patch) | |
tree | 0a876a7062c4f8e2b6c258ff8076aca82cdcc7ce /helix-view | |
parent | 3a4c3598d1a7071b2b0fe9a1bc13e5800aa11be1 (diff) |
Improved file reload error message (#6274)
Diffstat (limited to 'helix-view')
-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 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)?; |