Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants