From ad855da12d2d0ef2b42a40f5258cce5ad1b7b0c9 Mon Sep 17 00:00:00 2001 From: Santiago Vrancovich <103597690+santiagovrancovich@users.noreply.github.com> Date: Tue, 14 Mar 2023 13:43:21 -0300 Subject: [PATCH] Improved file reload error message (#6274) --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 19220f286..eca600265 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)?;