bugGNU Octave - Bugs: bug #65964, nthargout does not propagate error...

 
 

bug #65964: nthargout does not propagate error ID

Submitter:  None
Submitted:  Mon 08 Jul 2024 12:01:25 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Thomas FehĂ©r Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 9.2.0
Release:  Operating System:  * Any
Fixed Release:  10.1.0 Planned Release:  10.1.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Jul 2024 11:37:26 PM UTC, comment #1: 

There were a number of things to fix with this function.  I overhauled the code in this changeset (https://hg.savannah.gnu.org/hgweb/octave/rev/fae5ef8f1600) on the development branch.  It will be a part of Octave 10.1, but you can download it from the Mercurial repository if you need it earlier.

Marking bug as Fixed and closing report.

Rik <rik5>
Group administrator
Mon 08 Jul 2024 12:01:25 PM UTC, original submission:  

If the function that is called by nthargout throws an error then the error ID is discarded.

A possible fix would be:


107c107
<     err = lasterr ();
---
>     [err, id] = lasterr ();
111c111,115
<       error (err);
---
>       if isempty(id)
>         error (err);
>       else
>         error(id, err);
>       endif


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-23 rik5 Item GroupNone Other
        StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 10.1.0
        Planned ReleaseNone 10.1.0

    Back to the top

    Powered by Savane 3.14-962f.
    Corresponding source code