mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
fbb9b36441
# Objective Make it clear to the user why their program is failing rather than having an unhelpful `called Option::unwrap() on a None value` message. ## Solution Change the `unwrap()` calls to `expect()` calls, mirroring previously implemented error messages. ## Testing I have not tested these changes, but they are fairly trivial so I do not necessarily feel they need it. |
||
---|---|---|
.. | ||
state | ||
app.rs | ||
commands.rs | ||
condition.rs | ||
lib.rs | ||
reflect.rs | ||
state_scoped.rs | ||
state_scoped_events.rs |