[Issue 16783] std.net.curl application throws an exception

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 27 16:28:28 UTC 2021


Berni44 <bugzilla at bernis-buecher.de> changed:

           What    |Removed                     |Added
                 CC|                            |bugzilla at bernis-buecher.de

--- Comment #7 from Berni44 <bugzilla at bernis-buecher.de> ---
Some analysis: Function pty


receives a VariantN containing a

Couldn't resolve host name on handle 5654F7BC4F50"

but cannot convert this to Throwable and hence throws a

I think that the "convertsTo" check doesn't work correctly and thus does not
throw this exception as expected. (I know too little about std.variant to
continue here.)

Further, I think, the PriorityMessageException could be improved to tell more
details about its parameter "vals" in its message. Maybe

super("Priority message: " ~ vals.stringof);

would be better.


More information about the Digitalmars-d-bugs mailing list