mirror of
https://github.com/bevyengine/bevy
synced 2024-12-30 06:53:13 +00:00
d58ed67fa4
# Objective
- Fixes https://github.com/bevyengine/bevy/issues/6760
- adds line and position on line info to scene errors
```text
Before:
2023-03-12T22:38:59.103220Z WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected closing `)`
After:
2023-03-12T22:38:59.103220Z WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected closing `)` at scenes/test/scene.scn.ron:10:4
```
## Solution
- use span_error to get position info. This is what the ron crate does
internally to get the position info.
|
||
---|---|---|
.. | ||
bundle.rs | ||
dynamic_scene.rs | ||
dynamic_scene_builder.rs | ||
lib.rs | ||
scene.rs | ||
scene_loader.rs | ||
scene_spawner.rs | ||
serde.rs |