on master help sign in
Improved file reload error message (#6274)
commitad855da12d2d0ef2b42a40f5258cce5ad1b7b0c9 authorSantiago Vrancovich <103597690+santiagovrancovich@users.noreply.github.com> dateTue 14 Mar 2023, 13:43 (4 years ago) parent3a4c359
1 file changed+1−1
helix-view/src/document.rs+1−1
helix-view/src/document.rs+1−1
@@ -776,7 +776,7 @@ impl Document {
776776 let path = self
777777 .path()
778778 .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()))?
780780 .to_owned();
781781
782782 let mut file = std::fs::File::open(&path)?;