Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: FTP Upload: Error catching, Please help
Pages: [1] Print
Author Topic: FTP Upload: Error catching, Please help  (Read 256 times)
lucifer666
Guest


Email
FTP Upload: Error catching, Please help
« on: February 09, 2006, 10:53:33 AM »

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
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
FTP Upload: Error catching, Please help
« Reply #1 on: February 10, 2006, 05:24:05 AM »

Try with:

Code:
attempt [ ... ]

or

Code:
if error? try [ ... ] [print "Got an error!"]

See the Core guide for more details.
Logged
Lucifer666
Guest


Email
FTP Upload: Error catching, Please help
« Reply #2 on: February 10, 2006, 12:05:10 PM »

Thanks a lot! That's what I need.


Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: FTP Upload: Error catching, Please help
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2008, 09:40:34 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2315 Posts in 597 Topics by 4204 Members
Latest Member: hledamka.com

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc