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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 23 11:52:24 UTC 2018


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

Aravinda <hallimanearavind at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hallimanearavind at gmail.com

--- Comment #6 from Aravinda <hallimanearavind at gmail.com> ---
Easy to reproduce if URL is invalid or the server is down

import std.net.curl, std.stdio;

void main()
{
    foreach (line; byLineAsync("dlang.org1"))
        writeln(line);
}

I think patch required to raise proper exception.

--


More information about the Digitalmars-d-bugs mailing list