[Issue 13541] std.windows.syserror.sysErrorString() should be nothrow
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Sep 29 03:00:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13541
--- Comment #9 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Only that won't make sysErrorString nothrow because of UTF conversions.
(In reply to Walter Bright from comment #8)
> return
> "failed getting error string for WinAPI error code: " ~
> sysErrorString(newErrCode);
For the record, this is a horrible solution. Imagine that an end-user tries
using a D app, and they get an error popup that just says "failed getting error
string for WinAPI error code: Resource not found". Not even an error code they
can Google for.
A better solution, and what wenforce already does, is to silently omit the
error message and just return the error code as a string.
--
More information about the Digitalmars-d-bugs
mailing list