diff libinterp/parse-tree/pt-eval.cc @ 30636:ad8c9d93b86d

maint: merge stable to default.
author Rik <rik@octave.org>
date Wed, 12 Jan 2022 14:28:14 -0800
parents ed17822e7662 064a8fbf9162
children af2a0dbfc8fa
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc	Tue Jan 11 12:17:16 2022 -0800
+++ b/libinterp/parse-tree/pt-eval.cc	Wed Jan 12 14:28:14 2022 -0800
@@ -3418,7 +3418,9 @@
       {
         std::string name = user_function.name ();
 
-        error ("%s: function called with too many inputs", name.c_str ());
+        error_with_id ("Octave:invalid-fun-call",
+                       "%s: function called with too many inputs",
+                       name.c_str ());
       }
 
     define_parameter_list_from_arg_vector (param_list, args);
@@ -3433,7 +3435,9 @@
           {
             std::string name = user_function.name ();
 
-            error ("%s: function called with too many outputs", name.c_str ());
+            error_with_id ("Octave:invalid-fun-call",
+                           "%s: function called with too many outputs",
+                           name.c_str ());
           }
       }