forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Why?
angerangel edited this page Mar 20, 2013
·
1 revision
WHY? 'err
Explain the last error in more detail.
WHY? is a function value.
- err -- Optional error value (word! path! error! none! unset!)
#SOURCE
why?: make function! [ [
"Explain the last error in more detail."
'err [word! path! error! none! unset!] "Optional error value"
][
case [
unset? :err [err: none]
word? err [err: get err]
path? err [err: get err]
]
either all [
error? err: any [:err system/state/last-error]
err/type
] [
say-browser
err: lowercase ajoin [err/type #"-" err/id]
browse join http://www.rebol.com/r3/docs/errors/ [err ".html"]
] [
print "No information is available."
]
exit
] ]