Mercurial > octave
changeset 30652:a3a52d968f71 stable
Print function name for too many arguments of anonymous function (bug #61842).
* libinterp/parse-tree/pt-eval.cc (tree_evaluator::execute_user_function):
Print function name for too many arguments of anonymous function.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 17 Jan 2022 17:53:37 +0100 |
parents | b20da6bed444 |
children | af2a0dbfc8fa 7ad57680a310 |
files | libinterp/parse-tree/pt-eval.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc Fri Jan 14 13:38:52 2022 -0800 +++ b/libinterp/parse-tree/pt-eval.cc Mon Jan 17 17:53:37 2022 +0100 @@ -3418,6 +3418,9 @@ { std::string name = user_function.name (); + if (name.empty ()) + name = "@<anonymous>"; + error_with_id ("Octave:invalid-fun-call", "%s: function called with too many inputs", name.c_str ());