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

[REBOL] Re: Converting Errors to a string?

From: philb:upnaway at: 21-Dec-2001 10:38

Hi Larry, Well yes I could do that but what I really want to do is to display an alert box of some kind with a more "user friendly" error message. By the way the code snippet was for demonstration purposes only .... My code is more like if error? lv-err: try [...some code here ....] [ ; process lv-err here ; alert ...something here... ] Cheers Phil === Original Message === Hi Phil, How about MOLD? It will convert to a string formatted the same as PROBE.
>> print mold :err
make object! [ code: 400 type: 'math id: 'zero-divide arg1: none arg2: none arg3: none near: [a: 1 / 0] where: none ] -Larry