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

[REBOL] Re: Reading empty directories via FTP error

From: rotenca:telvia:it at: 13-Nov-2003 14:14

Hi, another problem of the ftp handler is error handling (see http://www.rebol.net/list/list-msgs/32024.html) one patch i tested a little is this: old: repeat x length? connections [ conn: system/words/pick connections x if all [conn conn/host = temp conn/user = port/user not error? catch [get-cur-dir conn]] [ patched: repeat x length? connections [ conn: system/words/pick connections x if all [ conn conn/host = temp conn/user = port/user ;romano not error? catch [throw-on-error [get-cur-dir conn]] ] this kind of patch can be used also in other points of the handler code, but i did not tested it (some erros must happen other errors must not), in this specific case no error must be throw back to the calling code. --- Ciao Romano