# HG changeset patch # User Markus Mützel # Date 1642438417 -3600 # Mon Jan 17 17:53:37 2022 +0100 # Branch stable # Node ID a3a52d968f71958c3d31c6a641746469abec393d # Parent b20da6bed4446bea18e62baf1f6ee1e304058469 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. diff -r b20da6bed444 -r a3a52d968f71 libinterp/parse-tree/pt-eval.cc --- 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 = "@"; + error_with_id ("Octave:invalid-fun-call", "%s: function called with too many inputs", name.c_str ());