bevyengine / bevy_github_ci_template

Apache License 2.0
202 stars 45 forks source link

Add exception handler to filter out winit control flow message #34

Closed marlyx closed 1 year ago

marlyx commented 1 year ago

During startup winit is using an exception as a part of its control flow. This exception is "normal" and not a actual error but will end up polluting the users browser console.

Add a simple catch all exceptions method that will silently drop this exception and propagate all other exceptions.

alice-i-cecile commented 1 year ago

This is a port of https://github.com/bevyengine/bevy-website/pull/643