Skip to content

Commit

Permalink
consume_meta_from_file: Add some error context
Browse files Browse the repository at this point in the history
  • Loading branch information
crumblingstatue committed Nov 2, 2024
1 parent 7284ca1 commit 3d3fc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ impl App {
pub fn consume_meta_from_file(&mut self, path: PathBuf) -> Result<(), anyhow::Error> {
per!("Consuming metafile: {}", path.display());
let data = std::fs::read(&path)?;
let meta = rmp_serde::from_slice(&data)?;
let meta = rmp_serde::from_slice(&data).context("Deserialization error")?;
self.hex_ui.clear_meta_refs();
self.meta_state.meta = meta;
self.meta_state.clean_meta = self.meta_state.meta.clone();
Expand Down

0 comments on commit 3d3fc54

Please sign in to comment.