[REBOL] R: Catching Script Error
From: rotenca:telvia:it at: 17-Jul-2001 2:49
> In other words - is there some way I can recover gracefully from an error in
> a script and give some useful feedback on where the problem was without
> REBOL going into a sulk? I can get by with the "There was an error in the
> command body", but I'd prefer to be able to give a more useful message :/
Try this:
if error? result: try [do testing] [
result: disarm result
probe get in get in system 'error result/type result/id
]
> Chris
romano