Handle Rust Panics Better
d10sfan opened this issue · 1 comments
d10sfan commented
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