Improved file reload error message (#6274)

pull/6323/head
Santiago Vrancovich 2 years ago committed by GitHub
parent 3a4c3598d1
commit ad855da12d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -776,7 +776,7 @@ impl Document {
let path = self let path = self
.path() .path()
.filter(|path| path.exists()) .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(); .to_owned();
let mut file = std::fs::File::open(&path)?; let mut file = std::fs::File::open(&path)?;

Loading…
Cancel
Save