octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in try-catch?


From: Tatsuro MATSUOKA
Subject: Re: bug in try-catch?
Date: Fri, 10 Jun 2016 20:07:20 +0900 (JST)

> From: JuanPi 

> To: Maintainers GNU Octave
> Cc: 
> Date: 2016/6/10, Fri 19:51
> Subject: Re: bug in try-catch?
> 
> 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
> 


I have executed above on ocave-4.0.2 (x64) on windows 10.

>> tests

id


id

1

Tatsuro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]