Skip to content

Commit 86dd0ce

Browse files
Make rust panic handler log panic payload (ParadiseSS13#28527)
* make rust panic handler actually show payload * Build Rust library --------- Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
1 parent 4947225 commit 86dd0ce

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

rust/src/logging/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) fn dm_call_stack_trace(msg: String) -> eyre::Result<()> {
1515
/// Writes panic info to a text file, and calls dm stack trace proc as well.
1616
pub(crate) fn setup_panic_handler() {
1717
std::panic::set_hook(Box::new(|info| {
18-
let msg = format!("Panic \n {:#?}", info);
18+
let msg = format!("Panic! {info}");
1919
let msg_copy = msg.clone();
2020
let _ = thread_sync(
2121
|| -> ByondValue {

rustlibs.dll

-603 Bytes
Binary file not shown.

rustlibs_prod.dll

-671 Bytes
Binary file not shown.

tools/ci/librustlibs_ci.so

-772 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)