Skip to content

better error messages when deserializing a scene #6760

@hymm

Description

@hymm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsA-ScenesComposing and serializing ECS objectsC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions