octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49642] rethrow (lasterror ()) loses stack inf


From: Rik
Subject: [Octave-bug-tracker] [bug #49642] rethrow (lasterror ()) loses stack information from previous error structure
Date: Mon, 21 Nov 2016 06:02:49 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49642 (project octave):

                  Status:               Confirmed => In Progress            

    _______________________________________________________

Follow-up Comment #9:

I tested the quick patch on stable and it seems to work.  One thing I did
notice is that when the error is rethrown the printed stack depth is only one
deep.  In the original error, it includes the functions validsetargs and
union.  In the subsequent rethrow, it only includes validsetargs.  Is that
correct? 


>> union ({'a'}, 1)
error: union: cell array of strings cannot be combined with a nonstring value
error: called from
    validsetargs at line 39 column 9
    union at line 51 column 8
>> lasterror ().stack.file
ans =
/home/rik/wip/Projects_Mine/octave-stable/scripts/set/private/validsetargs.m
ans = /home/rik/wip/Projects_Mine/octave-stable/scripts/set/union.m
>> rethrow (lasterror ())
union: cell array of strings cannot be combined with a nonstring value
error: called from 'validsetargs' in file
/home/rik/wip/Projects_Mine/octave-stable/scripts/set/private/validsetargs.m
near line 39, column 9
>> lasterror ().stack.file
ans =
/home/rik/wip/Projects_Mine/octave-stable/scripts/set/private/validsetargs.m
ans = /home/rik/wip/Projects_Mine/octave-stable/scripts/set/union.m
>>




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49642>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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