-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
better error messages when deserializing a scene #6760
Copy link
Copy link
Closed
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsA-ScenesComposing and serializing ECS objectsComposing and serializing ECS objectsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Description
What problem does this solve or what need does it fill?
I was trying to migrate my scene from an old project to the new format in 0.9 and was getting errors about my format. Below are some examples:
2022-11-25T23:09:37.578114Z WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected float
2022-11-25T23:10:12.227881Z WARN bevy_asset::asset_server: encountered an error while loading an asset: unknown field `flags`, expected one of `is_visible_in_hierarchy`, `is_visible_in_view`
The error messages don't give much context to what line or what structure it failed at deserializing. It would be very helpful to have this information to know where in my ron file I need to fix things.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsA-ScenesComposing and serializing ECS objectsComposing and serializing ECS objectsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use