mirror of https://github.com/helix-editor/helix
Improved file reload error message (#6274)
parent
3a4c3598d1
commit
ad855da12d
|
@ -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)?;
|
||||
|
|
Loading…
Reference in New Issue