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 ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 4:20 PM Subject: [REBOL] Coerting Errors to a string? > Hi Guys, > > Given that my program recieves an error I disarm it, and I have an error object, for example > > err: disarm try [a: 1 / 0] > > probe err > > make object! [ > code: 400 > type: 'math > id: 'zero-divide > arg1: none > arg2: none > arg3: none > near: [a: 1 / 0] > where: none > ] > > How do I convert it to a nicely formatted readable string ? > > >> err > ** Math Error: Attempt to divide by zero > ** Near: a: 1 / 0 > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.