[REBOL] error? try load bad-path
From: bry::itnisk::com at: 11-Mar-2004 21:06
I have a situation where I'm converting a
string to a path and loading it, in some
situations this string can be a bad path, I
want to catch that, so I put in this
patherr: error? try[load pass]
either patherr = true[
] [
passlevel: load pass
passlevel: to-integer passlevel
]
unfortunately in the cases where I pass a
bad path I get the following:
** Script Error: Invalid path value: skjjsjnf
** Where: do-boot
** Near: passlevel: to-integer passlevel