[wasm] Attempting to get an EventWriter for an unregistered event type panics with an unhelpful message #2138
Labels
A-ECS
Entities, components, systems, and events
C-Docs
An addition or correction to our documentation
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
S-Duplicate
This issue or PR already exists
Bevy version
0.5.0
Operating system & version
wasm
What you did
Set up the app, but do not register the event
What you expected to happen
The application is misconfigured so I expect this to panic, and ideally the message for the panic would explain that a system attempted to fetch an
EventWriter
for an unregistered event type.What actually happened
The application panics with the following:
The text was updated successfully, but these errors were encountered: