log=: smoutput NB. or fwrite&'/path/to/file'
faulty=: 3 : 0
r=.i.0 0
try. r=.". y.
catch. log '>>> Error ',(":13!:11 i.0),LF,(13!:12 i.0),'<<<'
end. r
)
faulty 'i.3'
0 1 2
faulty'1!:0<1'
>>> Error 3
|domain error: faulty
| 1!:0<1
<<<
faulty'+..'
>>> Error 16
|spelling error
| +..
| ^
| r=. ".y.
<<<
--- Lorin Lund <[EMAIL PROTECTED]> wrote:
> Oleg Kobchenko wrote:
>
> >What does the error say?
> >
> >Save it in a file in the catch block.
> >
> >
> >
> I'm sorry I did not make myself clear. If there is an error message I
> don't
> know what it is. As far as I know it would have gone into the httpd
> error log.
> But I don't know where the error log is on this server. It is not in
> the same
> directory as the traffic log.
>
> You say "save it in a file in (during) the catch block". I'm sorry. I
> don't follow
> what you are getting at. I don't know how to capture an error message
> from
> within the program.
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm