Arnavion / libjass

Renders ASS subs in the browser.
Apache License 2.0
174 stars 29 forks source link

Catch and log errors from renderer with explicit message #76

Closed Arnavion closed 8 years ago

Arnavion commented 8 years ago

As found in https://github.com/Arnavion/libjass/issues/75#issuecomment-215846383 , any errors from renderer.preRender() or renderer.draw() don't get logged with console.error, so users won't notice unless they have the browser console open and still may not realize it's a libjass bug. Also one dialogue throwing error prevents others in the same tick from being rendered as well.

Need to catch and log these with console.error with explicit message.