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

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

[Octave-bug-tracker] [bug #48175] "parse error" error message in GUI cal


From: Rik
Subject: [Octave-bug-tracker] [bug #48175] "parse error" error message in GUI callbacks
Date: Fri, 10 Jun 2016 04:57:02 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #5, bug #48175 (project octave):

@Mike: Take a look at my newly uploaded diff.  I fake the error message by
writing to std::cerr and then set the internal error message by calling the
Octave function lasterr().


-          eval_string (s, false, status, 0);
+          try
+            {
+              eval_string (s, false, status, 0);
+            }
+          catch (octave_execution_exception&)
+            {
+              std::cerr << "execution error in graphics callback function"
<<
+                           std::endl;
+              feval ("lasterr",
+                     ovl ("execution error in graphics callback function"));
+              recover_from_exception ();
+            }


Feel free to modify the message, or to commit the change.


(file #37442)
    _______________________________________________________

Additional Item Attachment:

File name: bug_48175-2.diff               Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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