Hi Ammon,

there are two ways how to do it. The first one:

f: func [[catch] x] [
    if x = 1 throw make error! {x is equal to one!}
]
f 1

** User Error: x is equal to one!
** Near: f 1

the second one is:

disarmed: disarm err: make error! {this error}
disarmed/near: [my near]
err
** User Error: this error
** Near: my near

Cheers
    Ladislav

----- Original Message -----
From: "Ammon Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 2:57 AM
Subject: [REBOL] Error! Near: ???



Hi,

    I am trying to create an Error!, but the darn thing always show my Make
Error! code as the *Near* value.  Is there some way to set the Near Value?

Thanks!!
Ammon


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to