[Issue 13541] std.windows.syserror.sysErrorString() should be nothrow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 27 13:45:59 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=13541
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #11 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #8420 "Fix 13541 - Make
sysErrorString and WindowsException ctor nothrow" fixing this issue:
- Fix 13541 - Make sysErrorString and WindowsException ctor nothrow
Both functions are used mostly when creating an exception for another
error. Throwing another exception because the error message could not
be retrieved suppresses the actually useful information (the error code).
Hence this patch changes the aforementioned functions to yield
`Error <code>` when the message lookup fails.
https://github.com/dlang/phobos/pull/8420
--
More information about the Digitalmars-d-bugs
mailing list