fix backtrace

This commit is contained in:
Robin Appelman 2024-07-30 14:18:25 +02:00
commit dc81fc18d4

View file

@ -73,9 +73,9 @@ pub fn render_exception(exception: &FullException) -> ScrollbarTable {
fn exception_trace(exception: &FullException) -> impl Iterator<Item = Row> + '_ { fn exception_trace(exception: &FullException) -> impl Iterator<Item = Row> + '_ {
let exception_row = Row::new([ let exception_row = Row::new([
Text::from(""),
Text::from(exception.line.to_string()).alignment(Alignment::Right),
Text::from(exception.file.as_str()), Text::from(exception.file.as_str()),
Text::from(exception.line.to_string()).alignment(Alignment::Right),
Text::from(""),
]) ])
.style(TABLE_HEADER_STYLE); .style(TABLE_HEADER_STYLE);
let trace_rows = exception.trace.iter().map(trace_line); let trace_rows = exception.trace.iter().map(trace_line);