Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange error message "try at" #162

Open
qarmin opened this issue Jan 19, 2023 · 4 comments
Open

Strange error message "try at" #162

qarmin opened this issue Jan 19, 2023 · 4 comments

Comments

@qarmin
Copy link

qarmin commented Jan 19, 2023

Issue copied from qarmin/czkawka#898 (Op used 0.7.2 version, but with 0.8 same problem happens)

Looks that some pdfs fails to open with strange message try at ... .rs.
Such messages should be clear, but are not.

Example file - Long.Harry.pdf

ff

@s3bk
Copy link
Contributor

s3bk commented Jan 19, 2023

This is generated from the t! macro unwrapping an Option.

@s3bk
Copy link
Contributor

s3bk commented Jan 19, 2023

@qarmin
Copy link
Author

qarmin commented Jun 9, 2023

In app I changed this from

Try at /user/pdf.rs:277.rs

into

Decoding error in pdf-rs library -  /user/pdf.rs:277.rs

so maybe same thing could be done directly here?

There is also different error "Shared" which is visible without any context

pdf/pdf/src/error.rs

Lines 14 to 15 in 677152f

#[snafu(display("Shared"))]
Shared { source: Arc<PdfError> },

@s3bk
Copy link
Contributor

s3bk commented Jun 9, 2023

You can create custom messages for any t! occurence, but i am lazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants