luxtorpeda-dev / luxtorpeda

Steam Play compatibility tool to run games using native Linux engines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle Rust Panics Better

d10sfan opened this issue · comments

Linux Distribution

N/A

Luxtorpeda Version

Since Godot

Bug description

When a rust panic occurs, the godot UI freezes where it was, and can confuse the user as to what the issue is.

Steps To Reproduce

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/command.rs:193:43

Expected Behavior

If a rust panic occurs for some reason, the godot side should be notified if possible and an error message on godot should be shown, purely with gdscript. Then, from there, Clicking "OK" should close everything down.

https://godot-rust.github.io/book/gdnative/recipes/panic-handler.html

Additional Context

No response

Relevant log output

No response

Fixed in #197