Let's say I type a stupid command in Rebol Console like
>> AWordThatMeansNothing
** Script Error: AWordThatMeansNothing has no value
** Near: AWordThatMeansNothing
>>
I want to intercept the above error to display another message or do anything I nee开发者_Python百科d to when I get an error in Console.
One way is to add a small front end to the console. Not perfect, but a start:
forever [
if error? try [
print do input][
print "went bad!"
]
]
精彩评论