bevy/crates/bevy_render/src
dataphract cba9bcc7ba improve error messages for render graph runner (#3930)
# Objective

Currently, errors in the render graph runner are exposed via a `Result::unwrap()` panic message, which dumps the debug representation of the error.

## Solution

This PR updates `render_system` to log the chain of errors, followed by an explicit panic:

```
ERROR bevy_render::renderer: Error running render graph:
ERROR bevy_render::renderer: > encountered an error when running a sub-graph
ERROR bevy_render::renderer: > tried to pass inputs to sub-graph "outline_graph", which has no input slots
thread 'main' panicked at 'Error running render graph: encountered an error when running a sub-graph', /[redacted]/bevy/crates/bevy_render/src/renderer/mod.rs:44:9
```

Some errors' `Display` impls (via `thiserror`) have also been updated to provide more detail about the cause of the error.
2022-03-07 09:09:24 +00:00
..
camera Add capability to render to a texture (#3412) 2022-02-24 00:40:24 +00:00
color small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
mesh Mesh vertex buffer layouts (#3959) 2022-02-23 23:21:13 +00:00
primitives bevy_gltf: Add support for loading lights (#3506) 2022-01-03 07:59:25 +00:00
render_graph improve error messages for render graph runner (#3930) 2022-03-07 09:09:24 +00:00
render_phase Expose draw indirect (#4056) 2022-02-28 10:26:49 +00:00
render_resource remove Events from bevy_app, they now live in bevy_ecs (#4066) 2022-03-01 19:33:56 +00:00
renderer improve error messages for render graph runner (#3930) 2022-03-07 09:09:24 +00:00
texture Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
view Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
lib.rs Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
render_asset.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
render_component.rs Deprecate .system (#3302) 2022-02-08 04:00:58 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00