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

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

[Octave-bug-tracker] [bug #40828] Exception handling: MException object


From: Guillaume
Subject: [Octave-bug-tracker] [bug #40828] Exception handling: MException object functions
Date: Thu, 6 Oct 2022 13:47:47 -0400 (EDT)

Follow-up Comment #20, bug #40828 (project octave):

Thanks for your comments. Regarding the `sprintf` call, I just checked with
Matlab and the behavior differs from `error`:

++
>> MException ("octave:bug", "error message %s")            

ans = 

  MException with properties:

    identifier: 'octave:bug'
       message: 'error message '
         cause: {}
         stack: [0x1 struct]
    Correction: []

>> sprintf("error message %s")

ans = 

    "error message "

>> error("error message %s")
error message %s
--

I will look into preparing a patch.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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