on master help sign in
Improved file reload error message (#6274)
ad855daSantiago Vrancovich
helix-view/src/document.rs+1−1
@@ -776,7 +776,7 @@ impl Document {
776 let path = self
776 let path = self
777 .path()
777 .path()
778 .filter(|path| path.exists())
778 .filter(|path| path.exists())
779− .ok_or_else(|| anyhow!("can't find file to reload from"))?
779+ .ok_or_else(|| anyhow!("can't find file to reload from {:?}", self.display_name()))?
780 .to_owned();
780 .to_owned();
781
781
782 let mut file = std::fs::File::open(&path)?;
782 let mut file = std::fs::File::open(&path)?;