Skip to content

Commit

Permalink
Turn metafile load error non-fatal when trying to load file
Browse files Browse the repository at this point in the history
  • Loading branch information
crumblingstatue committed Nov 2, 2024
1 parent 3d3fc54 commit fdd084f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,10 @@ impl App {
meta_path.display()
);
let meta_path = meta_path.clone();
self.consume_meta_from_file(meta_path.clone())
.with_context(|| format!("Failed to load metafile {meta_path:?}"))?;
if let Err(e) = self.consume_meta_from_file(meta_path.clone()) {
self.set_new_clean_meta(font_size, line_spacing);
msg_fail(&e, &format!("Failed to load metafile {meta_path:?}"), msg);
}
}
} else {
// We didn't load any meta, but we're loading a new file.
Expand Down

0 comments on commit fdd084f

Please sign in to comment.