Mercurial > hg > octave-nkf
diff libinterp/parse-tree/pt-arg-list.cc @ 20798: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 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-arg-list.cc +++ b/libinterp/parse-tree/pt-arg-list.cc @@ -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 {