|
Pages: [1]
|
 |
|
Author
|
Topic: FTP Upload: Error catching, Please help (Read 256 times)
|
lucifer666
Guest
|
Hi All,
I'm new to rebol but trying to learn.
I wrote a little script parsing a web page, extracting some coordinates, create the corresponding Google Earth placemark file and upload it to a server.
My problem: from time to time i get an error during FTP transfer or during the download of the webpage. A broken transmition is not the problem, i can skip the missing data BUT my script is stopping and that is bad.
How can i catch the error as to allow the script to continue.
Basically I would like to ignore all errors.
Thanks for help Lucifer
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Try with: attempt [ ... ] or if error? try [ ... ] [print "Got an error!"] See the Core guide for more details.
|
|
|
|
|
Logged
|
|
|
|
Lucifer666
Guest
|
Thanks a lot! That's what I need.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |