mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
Improved file reload error message (#6274)
This commit is contained in:
parent
3a4c3598d1
commit
ad855da12d
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user