bevy/crates/bevy_asset/src
Stepan Koltsov c0f8338697
Better error message on incorrect asset label (#11254)
# Objective

When you have no idea what to put after `#` when loading an asset, error
message may help.

## Solution

Add all labels to the error message.

## Test plan

Modified `anti_alias` example to put incorrect label, the error is:

```
2024-01-08T07:41:25.462287Z ERROR bevy_asset::server: The file at 'models/FlightHelmet/FlightHelmet.gltf' does not contain the labeled asset 'Rrrr'; it contains the following 25 assets: 'Material0', 'Material1', 'Material2', 'Material3', 'Material4', 'Material5', 'Mesh0', 'Mesh0/Primitive0', 'Mesh1', 'Mesh1/Primitive0', 'Mesh2', 'Mesh2/Primitive0', 'Mesh3', 'Mesh3/Primitive0', 'Mesh4', 'Mesh4/Primitive0', 'Mesh5', 'Mesh5/Primitive0', 'Node0', 'Node1', 'Node2', 'Node3', 'Node4', 'Node5', 'Scene0'
```
2024-01-08 22:45:07 +00:00
..
io Don't auto create assets folder (#11218) 2024-01-08 21:45:26 +00:00
processor Remove unnecessary parens (#11075) 2023-12-24 17:43:01 +00:00
server Better error message on incorrect asset label (#11254) 2024-01-08 22:45:07 +00:00
assets.rs Add reserve_handle to Assets. (#10939) 2024-01-08 22:17:29 +00:00
event.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
folder.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
handle.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
id.rs Fix Asset Loading Bug (#10698) 2023-11-22 13:39:44 +00:00
lib.rs Unload render assets from RAM (#10520) 2024-01-03 03:31:04 +00:00
loader.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
meta.rs Reorder impl to be the same as the trait (#11076) 2023-12-24 17:43:55 +00:00
path.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
reflect.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
saver.rs Make AssetLoader/Saver Error type bounds compatible with anyhow::Error (#10493) 2023-11-14 01:25:06 +00:00