[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


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

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

https://github.com/dlang/phobos/blob/master/std/concurrency.d#L2239

receives a VariantN containing a

"std.net.curl.CurlException@/home/D/Repo/dmd/generated/linux/release/64/../../../../../phobos/std/net/curl.d(5279):
Couldn't resolve host name on handle 5654F7BC4F50"

but cannot convert this to Throwable and hence throws a
PriorityMessageException.


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