My lib is supposed to run arbitrary rust code that might panic, but I can't just abort the program in case it happened. I'd like to catch such foreign panics and display them myself.
To catch a panic I can use catch_panic
(no wonder) but how do I extract the message? If I get it right, it's not guaranteed to be &str
or String
.