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

[REBOL] read URL => error, exists? URL => false

From: princepawn::lycos::com at: 11-Sep-2000 13:29

>> read ftp://1.1.1.1
connecting to: 1.1.1.1 ** User Error: Failed login to 1.1.1.1 as anonymous. Check your login. ** Where: read ftp://1.1.1.1
>> exists? ftp://1.1.1.1
connecting to: 1.1.1.1 == false
>>
is this a valid set of responses? Or, because there was a read error in both cases, should an error always be thrown? I have a piece of code which behaves in certain ways based on errors and other ways based on failures and unfortunately the behavior for a failure is being triggered when the behavior for error should occur in both cases.