bevy/crates/bevy_state/src
Isaac Corbrey fbb9b36441
Throw real error messages on all failed attempts to get StateTransition schedule (#15284)
# 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.
2024-09-18 13:43:06 +00:00
..
state Reflect derived traits on all components and resources: bevy_state (#15228) 2024-09-15 17:16:45 +00:00
app.rs Throw real error messages on all failed attempts to get StateTransition schedule (#15284) 2024-09-18 13:43:06 +00:00
commands.rs Rename Add to Queue for methods with deferred semantics (#15234) 2024-09-17 00:17:49 +00:00
condition.rs remove inaccurate warning from in_state (#13862) 2024-06-16 16:06:45 +00:00
lib.rs Add state scoped events (#15085) 2024-09-09 16:37:27 +00:00
reflect.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
state_scoped.rs impl Reflect + Clone for StateScoped (#14156) 2024-07-08 01:00:04 +00:00
state_scoped_events.rs Rename Add to Queue for methods with deferred semantics (#15234) 2024-09-17 00:17:49 +00:00