Skip to content

Commit

Permalink
Print file path even if there is an MuPDF error
Browse files Browse the repository at this point in the history
  • Loading branch information
randomnoise committed Sep 7, 2024
1 parent 13de4b7 commit 14e9bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/view/reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ impl Reader {
doc.set_ignore_document_css(true);
}

println!("{}", info.file.path.display());

let first_location = doc.resolve_location(Location::Exact(0))?;

let mut view_port = ViewPort::default();
Expand Down Expand Up @@ -358,8 +360,6 @@ impl Reader {
let synthetic = doc.has_synthetic_page_numbers();
let reflowable = doc.is_reflowable();

println!("{}", info.file.path.display());

hub.send(Event::Update(UpdateMode::Partial)).ok();

Some(Reader {
Expand Down

0 comments on commit 14e9bc0

Please sign in to comment.