changeset 20622:128414587af2

don't print additional error message in argument list evaluation * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): Don't call error for for failed argument evaluation.
author John W. Eaton <jwe@octave.org>
date Fri, 09 Oct 2015 16:52:49 -0400
parents 22618d5fb6ad
children e34692daf663
files libinterp/parse-tree/pt-arg-list.cc
diffstat 1 files changed, 5 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-arg-list.cc	Fri Oct 09 15:17:08 2015 -0400
+++ b/libinterp/parse-tree/pt-arg-list.cc	Fri Oct 09 16:52:49 2015 -0400
@@ -240,21 +240,12 @@
 
       if (elt)
         {
-          try
-            {
-              octave_value tmp = elt->rvalue1 ();
+          octave_value tmp = elt->rvalue1 ();
 
-              if (tmp.is_cs_list ())
-                args.push_back (tmp.list_value ());
-              else if (tmp.is_defined ())
-                args.push_back (tmp);
-            }
-          catch (const octave_execution_exception&)
-            {
-              args.clear ();
-
-              error ("evaluating argument list element number %d", k+1);
-            }
+          if (tmp.is_cs_list ())
+            args.push_back (tmp.list_value ());
+          else if (tmp.is_defined ())
+            args.push_back (tmp);
         }
       else
         {