Properly report panic by resuming unwind

This commit is contained in:
2025-06-28 04:11:33 +10:00
parent 5f1f6dab7a
commit 6a4c726965
6 changed files with 15 additions and 8 deletions

View File

@@ -153,7 +153,10 @@ fn main() -> Result<(), ExitCode> {
tokio.block_on(async {
lua.await;
main.await.unwrap()
match main.await {
Ok(res) => res,
Err(err) => panic::resume_unwind(err.into_panic()),
}
})
}