Skip to content

Commit

Permalink
fix: Include trailing newline in backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 10, 2024
1 parent 808aba7 commit 9f6d0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ fn render_backtrace() -> String {
}
}

let _ = writeln!(backtrace);

backtrace
}
2 changes: 1 addition & 1 deletion tests/single-panic/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Panic occurred in file 'tests/single-panic/src/main.rs' at line [..]
"backtrace" = """
...
[..]"""
"""
"#]]
);
Expand Down

0 comments on commit 9f6d0e8

Please sign in to comment.