From ad855da12d2d0ef2b42a40f5258cce5ad1b7b0c9 Mon Sep 17 00:00:00 2001 From: Santiago Vrancovich Date: Tue, 14 Mar 2023 13:43:21 -0300 Subject: Improved file reload error message (#6274) --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src') 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)?; -- cgit v1.2.3-70-g09d2