Thread overview
help
Nov 20, 2014
michael
Nov 20, 2014
Suliman
Nov 20, 2014
MachineCode
Nov 20, 2014
MrSmith
Nov 20, 2014
Mike Parker
November 20, 2014
Hello All:
when i am using std.net.curl to download a file that dosent exist on ftp sever,my code
will get an execption like this
" ‍std.net.curl.CurlException@std\net\curl.d(3605): Remote file not found on handle
 1A8E038
----------------
0x0042EC05
0x004027F6"
and then it exits,however what i want when it occers is that my code shows an error message  like
"please check the url you typed blablabla" not the one above,can anyone give a hand on me ?
                                                                                                                            thanks a lot.
                                                                                                                                    Michael.


November 20, 2014
You need to check if remote file exist of server and only after it download шею

Also add "scope" or "try catch" block to your code.
November 20, 2014
On 11/20/2014 3:38 PM, michael via Digitalmars-d-learn wrote:
> Hello All:
> when i am using std.net.curl to download a file that dosent exist on ftp
> sever,my code
> will get an execption like this
> " ‍std.net.curl.CurlException@std\net\curl.d(3605
> <mailto:‍std.net.curl.CurlException@std\net\curl.d(3605>): Remote file
> not found on handle
>   1A8E038
> ----------------
> 0x0042EC05
> 0x004027F6"
> and then it exits,however what i want when it occers is that my
> code shows an error message  like
> "please check the url you typed blablabla" not the one above,can anyone
> give a hand on me ?
>                                                                                                                              thanks a lot.
>                                                                                                                                      Michael.
>
try {
    // call curl
} catch( CurlException ) {
    // print error message
}
November 20, 2014
On Thursday, 20 November 2014 at 07:25:45 UTC, Suliman wrote:
> You need to check if remote file exist of server and only after it download шею

is this software name written in russian language?
November 20, 2014
On Thursday, 20 November 2014 at 16:48:29 UTC, MachineCode wrote:
> On Thursday, 20 November 2014 at 07:25:45 UTC, Suliman wrote:
>> You need to check if remote file exist of server and only after it download шею
>
> is this software name written in russian language?

"шею" means "it." on russian keyboard layout