Better error messages when Resources can't be found #1846
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
If one of my systems requests a Resource that doesn't exist, I get a panic with a message like
Requested resource does not exist: ResourceType
and a stack trace deep into the Bevy scheduler. I can't tell which system was trying to request the resource.What solution would you like?
There should be a way to find out which system is at fault. If multiple systems are asking for
ResourceType
, it's possible that some of them are fine due to stage/ordering constraints; I would like to focus on the one that caused the crash.Possible solutions:
What alternative(s) have you considered?
Staring at the code and commenting stuff out until the crash goes away works, but is laborious and time consuming.
The text was updated successfully, but these errors were encountered: