Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Stopping errors from stopping the program.

From: louisaturk:eudoramail at: 13-Mar-2002 1:27

Hi rebols, How do I stop an error from stopping my program? I am sending a file to a remote server every 10 minutes to update data. When there is too much traffic on the net or the remote server is too slow receiving the file, an error occurs which results in my program dying. I want it to keep trying until it succeeds no matter how long that takes. Here is what I have tried, but it doesn't seem to work (that is, errors still stop the program): until [not error? try [write web-address read page-url] [prin {ftp failed: trying again ... }]] Louis