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:  None
Status:  None Assigned to:  None
Originator Name:  Thomas FehĂ©r Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code