-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix error when raising a macro exception with empty message #8654
Conversation
There are a couple of specs that stress there is some information in the backtrace (search for I'm not familiar with the current error reporting code but I would like that some spec is added for this fix. |
But @bcardiff this fail only at compile time if you raise inside macro. If you raise "" outside of macro, it works just fine. Fix is in compiler/crystal/semantic/exception.cr. So i rather add spec to spec/compiler/semantic/macro_spec.cr, is it ok? |
Sure @jan-zajic, that should work: crystal/spec/compiler/semantic/macro_spec.cr Lines 277 to 300 in 2dd66ab
But there needs to be more information about the backtrace. Even if the test becomes a bit fragile to maintain IMO |
That would be nice, but is not a requirement for merging this bugfix. |
Unmasked stacktrace:
Fixes #8631