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 @@ pub fn reload( 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)?;