Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

show sections when panic macro is called #134

Open
KaitlynEthylia opened this issue Aug 7, 2023 · 1 comment
Open

show sections when panic macro is called #134

KaitlynEthylia opened this issue Aug 7, 2023 · 1 comment

Comments

@KaitlynEthylia
Copy link

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

@alercah
Copy link

alercah commented Dec 15, 2023

panic!("{:?}", report) should give you roughly what you want as a workaround until it's supported, although it'll duplicate some info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants