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

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

[Octave-bug-tracker] [bug #65964] nthargout does not propagate error ID


From: anonymous
Subject: [Octave-bug-tracker] [bug #65964] nthargout does not propagate error ID
Date: Mon, 8 Jul 2024 08:01:26 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65964>

                 Summary: nthargout does not propagate error ID
                   Group: GNU Octave
               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: thomas.feher@voiceinterconnect.de
             Open/Closed: Open
                 Release: 9.2.0
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 08 Jul 2024 12:01:25 PM UTC By: Anonymous
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









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65964>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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