Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve error message for attempting to add systems using add_system_…
…to_stage Fixes #3250 Notes: Since this panic occurs in bevy_ecs, and StartupStage is part of bevy_app, we really only have access to the Debug string of the `stage_label` parameter. This led me to the hacky solution of comparing the debug output of the label the user provides with the known variants of StartupStage. An alternative would be to do this error handling further up in bevy_app, where we can access StartupStage's typeid, but I don't think it is worth having a panic in 2 places (_ecs, and _app).
- Loading branch information