[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in try-catch?
From: |
JuanPi |
Subject: |
Re: bug in try-catch? |
Date: |
Fri, 10 Jun 2016 12:51:44 +0200 |
On Fri, Jun 10, 2016 at 12:20 PM, JuanPi <address@hidden> wrote:
> Can anybody corroborate that
>
> try error("id", "1\n"); catch err; disp(err.identifier); disp(err.message);
> end
>
> prints nothing for the id and the id for the message (Octave 4.1.0+ and
> stable)
>
> This seems like an bug.
>
>
>
>
> --
> JuanPi Carbajal
> Public GnuPG key: 9C5B72BF
> -----
> The end of funding: "Many researchers were caught up in a web of
> increasing exaggeration."
> - Hans Moravec
it seems that lasterr and lasterror are borken in my system. Can
anybody check if you see the same problems
try error("id", "1"); catch; [id msg] = lasterr (); disp(id); disp(msg); end
try error("id", "1"); catch; err = lasterror ();
disp(err.identifier); disp(err.message); end
try error("1"); catch; err = lasterror (); disp(err.identifier);
disp(err.message); end
--
JuanPi Carbajal
Public GnuPG key: 9C5B72BF
-----
The end of funding: "Many researchers were caught up in a web of
increasing exaggeration."
- Hans Moravec