[Issue 22026] checkaction=context: Exception thrown by toString hides assertion failures
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 15 21:55:01 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22026
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/druntime pull request #3499 "Fix 22026 - Catch
exceptions thrown by user-defined toString methods... " fixing this issue:
- Fix 22026 - Catch exceptions thrown by user-defined toString methods...
... when formatting values for `-checkaction=context` and print the
aggregate members as a fallback. This ensures that an unrelated error
does not mask the assertion failure.
https://github.com/dlang/druntime/pull/3499
--
More information about the Digitalmars-d-bugs
mailing list