From 14e9bc025b79aa693e523b2a9128266286a01eef Mon Sep 17 00:00:00 2001 From: randomnoise Date: Sat, 7 Sep 2024 20:18:03 +0300 Subject: [PATCH] Print file path even if there is an MuPDF error --- crates/core/src/view/reader/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/view/reader/mod.rs b/crates/core/src/view/reader/mod.rs index 27c97027..13c2e858 100644 --- a/crates/core/src/view/reader/mod.rs +++ b/crates/core/src/view/reader/mod.rs @@ -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(); @@ -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 {