Skip to content

Display panic error messages in web UI #27

Open
@ivan-aksamentov

Description

@ivan-aksamentov

Motivation

Currently panics are printed to the dev console. However, the errors are not manifesting in the web UI. It is not a great user experience.

I understand that the goal of the crate is to print to console, however I am looking for ways to pass the panic info from panic hook into my web application. I run a WebAssembly module in a WebWorker. What are my options?

Is there a way to emit a DOM event from the panic handler somehow and use e.g. AddEventListener() to subscribe to it?

What are the options for a WebAssembly module running in a WebWorker? (it does not have window and some of the other functionality compared to the main thread).

I am using React for UI, Recoil for state handling, and Observable for events.

Any thoughts or ideas?

Proposed Solution

I am looking for possible solutions yet.

Alternatives

I am looking for possible alternatives yet.

Additional Context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions