-
Notifications
You must be signed in to change notification settings - Fork 129
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 preconditionFailure
message
#132
Comments
Interesting. Thanks for the report, @mattyohe. I'll look into it 🕵️♀️ |
It looks like there's no message because the provided text isn't attached to the exception in some way, and is only printed. For now, I don't see how we can support this, but its something to revisit in the future and potentially discuss on the mailing list, as I think we can make the function arguments more accessible. |
Is there a different method we should call instead of |
Also FWIW the Sentry guys seem to have figured out how to extract the message: https://github.com/getsentry/sentry-cocoa/pull/188/files |
Calls to Swift's
preconditionFailure
(and likely its friendsassertionFailure
,fatalError
etc) that occur in 5.6.5 do not appear to bubble up the message parameter for reporting in the stack trace that is viewable on Bugsnag.com.It is unclear to me if this is a deficiency in Bugsnag or Swift.
Example:
Calling the code below in an application that uses Bugsnag:
Would produce a trace similar to:
But the message
"Example of an error"
would not be reported.The text was updated successfully, but these errors were encountered: