prose-im / prose-app-web

Prose Web application. XMPP client for team messaging.
https://prose.org/downloads
Mozilla Public License 2.0
25 stars 2 forks source link

Surface panics in Wasm binary #144

Open nesium opened 2 months ago

nesium commented 2 months ago

It would be tremendously helpful for debugging to surface Rust panics in the Wasm binary to the user. The messages sent to the JS code include stacktraces and that way users could just copy the error message and send it to us. Ideally the message would be sent to some error recording service like Bugsnag or the like.

Obviously the goal is to never see them since panics should never happen. Until this is the case it would be good however to surface them prominently.

Loosely refs #143.