Skip to content

Commit

Permalink
Improved file reload error message (helix-editor#6274)
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagovrancovich authored and wes-adams committed Jul 3, 2023
1 parent 6ed9dbb commit 3c8a2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 3c8a2a0

Please sign in to comment.