browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

fix: reject Promises with Error objects

Open kpcurai opened this issue 2 years ago • 1 comments

Addresses #211.

Certain browsers (I've observed it in DuckDuckGo Mobile 5) will throw an error if a Promise is rejected with a non-Error object. HTMLElements call onerror with an Event subclass argument, not an error object, so this is causing some noise and losing context for debugging.

kpcurai avatar Oct 18 '23 03:10 kpcurai

Any chance to get this merged ? I'm experiencing the same issue mentioned in #211

akanoce avatar Mar 26 '24 09:03 akanoce