[Top][All Lists]

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

[Octave-bug-tracker] [bug #35126] pie3.m demo failure (gnuplot)

From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #35126] pie3.m demo failure (gnuplot)
Date: Tue, 20 Dec 2011 18:35:04 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7

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


You reminded me that I had been wanting to add a try/catch block to the
rundemos script. Something like the diff below.

diff --git a/scripts/testfun/rundemos.m b/scripts/testfun/rundemos.m
--- a/scripts/testfun/rundemos.m
+++ b/scripts/testfun/rundemos.m
@@ -62,7 +62,11 @@
     if (length (f) > 2 && strcmp (f((end-1):end), ".m"))
       f = fullfile (directory, f);
       if (has_demos (f))
-        demo (f);
+        try
+          demo (f);
+        catch
+          printf ("error: %s", lasterr().message)
+        end_try_catch
         if (i != numel (flist))
           input ("Press <enter> to continue: ", "s");


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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