bevy/crates
François 86e2fc53d0 improve error message when asset type hasn't beed added to app (#1487)
Error message noticed in #1475 

When an asset type hasn't been added to the app but a load was attempted, the error message wasn't helpful:
```
thread 'IO Task Pool (0)' panicked at 'Failed to find AssetLifecycle for label Some("Mesh0/Primitive0"), which has an asset type 8ecbac0f-f545-4473-ad43-e1f4243af51e. Are you sure that is a registered asset type?', /.cargo/git/checkouts/bevy-f7ffde730c324c74/89a41bc/crates/bevy_asset/src/asset_server.rs:435:17
```
means that 
```rust
.add_asset::<bevy::render::prelude::Mesh>()
```
needs to be added.

* type name was not given, only UUID, which may make it hard to identify type across bevy/plugins
* instruction were not helpful as the `register_asset_type` method is not public

new error message:
```
thread 'IO Task Pool (1)' panicked at 'Failed to find AssetLifecycle for label 'Some("Mesh0/Primitive0")', which has an asset type "bevy_render::mesh::mesh::Mesh" (UUID 8ecbac0f-f545-4473-ad43-e1f4243af51e). Are you sure this asset type has been added to your app builder?', /bevy/crates/bevy_asset/src/asset_server.rs:435:17
```
2021-03-14 00:36:15 +00:00
..
bevy_app format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_asset improve error message when asset type hasn't beed added to app (#1487) 2021-03-14 00:36:15 +00:00
bevy_audio Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
bevy_core use std clamp instead of Bevy's (#1644) 2021-03-13 18:07:14 +00:00
bevy_derive format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_diagnostic ♻️ Timer refactor to duration. Add Stopwatch struct. (#1151) 2021-03-05 19:59:14 +00:00
bevy_dylib release 0.4.0 (#1093) 2020-12-19 13:28:00 -06:00
bevy_dynamic_plugin update libloading (#1543) 2021-03-03 03:11:12 +00:00
bevy_ecs Fix cargo doc warnings (#1640) 2021-03-13 18:23:38 +00:00
bevy_gilrs Resolve (most) internal system ambiguities (#1606) 2021-03-10 22:37:02 +00:00
bevy_gltf GLTF loader: support mipmap filters (#1639) 2021-03-13 18:44:26 +00:00
bevy_input format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_internal Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
bevy_log Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
bevy_math use std clamp instead of Bevy's (#1644) 2021-03-13 18:07:14 +00:00
bevy_pbr Add separate brightness field to AmbientLight (#1605) 2021-03-12 18:59:24 +00:00
bevy_reflect improve error message when asset type hasn't beed added to app (#1487) 2021-03-14 00:36:15 +00:00
bevy_render Replace default method calls from Glam types with explicit const (#1645) 2021-03-13 18:23:39 +00:00
bevy_scene format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_sprite use std clamp instead of Bevy's (#1644) 2021-03-13 18:07:14 +00:00
bevy_tasks format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_text format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_transform Replace default method calls from Glam types with explicit const (#1645) 2021-03-13 18:23:39 +00:00
bevy_ui Replace default method calls from Glam types with explicit const (#1645) 2021-03-13 18:23:39 +00:00
bevy_utils Update ahash requirement from 0.6.1 to 0.7.0 (#1370) 2021-02-01 13:29:54 -08:00
bevy_wgpu format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_window format comments (#1612) 2021-03-11 00:27:30 +00:00
bevy_winit format comments (#1612) 2021-03-11 00:27:30 +00:00