Hi Tim,

you can use something like this:

if error? error: try [ your-code more-code end-code ] [
  send [EMAIL PROTECTED] mold disarm error
]
  
if error? error: try [ your-code more-code end-code ] [
  write/append %logfile.log mold disarm error
]

Example:

>> if error? error: try [ 1 / 0 ] [ print mold disarm error ]

make object! [
    code: 400
    type: math
    id: zero-divide
    arg1: none
    arg2: none
    arg3: none
    near: [1 / 0]
    where: none
]
>>



At 07:21 AM 1/25/00 -0900, you wrote:
>I'm looking for a little general direction here:
>I'd like to use Rebol for CGI programming.
>
>I'm a newbie, busy with other things, but I believe
>that Rebol will "run minimized", right?
>
>Next question: If a particular script generates
>error messages, can rebol write those messages to
>a file, like an error log?
>
>Thanks
>Tim
>
>
>

;- Elan >> [: - )]

Reply via email to