-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support for sending a custom traceback #4
Comments
I never heard of Lapis but I will definitely have a look. For this functionality, I would like the default behaviour to remain the same, and |
Great thanks!
What I did was allow passing in a string, since I decided I wanted to tweak the look even further: I need to clean things up a bit, but here's the way I added this: |
I am not really keen on the implementation of this. I would prefer that |
Yeah, that makes sense. I will try to work on that this weekend. The reason I wanted to use a string is because if you're handling an error in a framework, you'll often just get a stack trace back. Internally, I can go and find that it uses I don't mind using function, because hey, I can just wrap a string in a function but just wanted to share my reasoning. :) |
I'm using lapis (a framework built on Openresty) and the tracebacks from the default lapis handle error are more detailed. What about a method
set_custom_trace()
that allows you provide your own traceback?Alternatively it could go as part of the
report
call. 🤷♂️The text was updated successfully, but these errors were encountered: