Skip to content

Commit

Permalink
fix(graphical): render cause chains for inner errors
Browse files Browse the repository at this point in the history
The default `GraphicalReportHandler` disables the printing of cause
chains for any inner errors (errors `related()` to a source diagnostic)
when it disables nested footer printing. This results in lost cause
chain information when printing with the default report handler.
  • Loading branch information
TheLostLambda committed Jan 27, 2024
1 parent 55bfc42 commit c59e715
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/handlers/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ impl GraphicalReportHandler {
// Don't print footer for inner errors
let mut inner_renderer = self.clone();
inner_renderer.footer = None;
inner_renderer.with_cause_chain = false;
inner_renderer.render_report(&mut inner, diag)?;

writeln!(f, "{}", self.wrap(&inner, opts))?;
Expand Down

0 comments on commit c59e715

Please sign in to comment.