bevy/crates/bevy_render/src/render_graph
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
..
context.rs improve error messages for render graph runner (#3930) 2022-03-07 09:09:24 +00:00
edge.rs Fix doc_markdown lints in bevy_render (#3479) 2022-01-09 11:09:46 +00:00
graph.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
mod.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
node_slot.rs improve error messages for render graph runner (#3930) 2022-03-07 09:09:24 +00:00
node.rs Fixed doc comment with render Node input/output methods (#3642) 2022-01-17 20:44:22 +00:00