[REBOL] Re: try doesn't handle the error??
From: tmoeller:fastmail:fm at: 11-Oct-2010 12:36
Hi Luca,
yes thats it. Don't really know how i could have missed this.
Thanks
Thorsten
On Mon, 11 Oct 2010 10:45 +0200, "Luca Truffarelli"
<luca-truffarelli.it> wrote:
>
> You need to reassign err:
> err: disarm err
>
> Thorsten Moeller wrote:
> > Hi,
> >
> > i got a small peace of code to be handled via try functionality:
> >
> > url: http://localhost:9998
> >
> > if error? err: try [
> > result: read/custom url [ GET ]
> > ][
> > disarm err
> > print err/id
> > ]
> >
> > This should just print the id of the err object.
> > But, when i have for example a wrong url or a wrong port it doesn't seem
> > to get through to the handler block.
> >
> > It returns:
> > ** Access Error: Cannot connect to localhost
> > ** Where: open-proto
> > ** Near: result: read/custom url [GET]
> >
> >
> > What am i doing wrong??
> >
> > Thorsten
> >
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
http://www.fastmail.fm - Accessible with your email software
or over the web