mupdf-js icon indicating copy to clipboard operation
mupdf-js copied to clipboard

[FEATURE] Use console.warn to emit errors not console.error

Open hisham opened this issue 4 months ago • 0 comments

Is your feature request related to a problem? Please describe.

When this library emits warnings like "warning: PDF stream Length incorrect", it emits them in console.warn rather than console.error, but handles the PDF succesfully. We have alarms setup on our server to alarm when there is console.error messages. So this triggers false alarms.

Describe the solution you'd like Use console.warn for warnings, and console.error for errors (or throw exception on error)

Describe alternatives you've considered Monkey patch console.warn in our code.

hisham avatar Feb 08 '24 19:02 hisham