[Issue 22947] sysErrorString throws Exception instead of WindowsException

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 27 22:23:24 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22947

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/phobos pull request #8422 "Fix 22947 - Use
wenforce in sysErrorString" fixing this issue:

- Fix 22947 - Use wenforce in sysErrorString

  This ensures that the method throws a `WindowsException` initialised
  with the proper error code. Also avoids unrelated exceptions that
  could suppress the error which caused the call to `sysErrorString`.

https://github.com/dlang/phobos/pull/8422

--


More information about the Digitalmars-d-bugs mailing list