Open KaitlynEthylia opened 1 year ago
I have a function but it has to be passed to a library that im not in control of, meaning I can't just bubble up a Result to main and return it, i need to use panic!. Is there some way I can panic using a report instead of just a string
Result
panic!
panic!("{:?}", report) should give you roughly what you want as a workaround until it's supported, although it'll duplicate some info.
panic!("{:?}", report)
I have a function but it has to be passed to a library that im not in control of, meaning I can't just bubble up a
Result
to main and return it, i need to usepanic!
. Is there some way I can panic using a report instead of just a string