Properly report panic by resuming unwind
This commit is contained in:
@@ -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()),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user