validate: Enhance debug message on invalid expression function call

This commit is contained in:
Thibault Saunier 2020-02-20 08:52:38 -03:00
parent 987d125c7e
commit ee5e0b396e

View file

@ -380,7 +380,11 @@ _read_builtin (MathParser * parser)
v1 = _read_argument (parser); v1 = _read_argument (parser);
v0 = MAX (v0, v1); v0 = MAX (v0, v1);
} else { } else {
_error (parser, "Tried to call unknown built-in function!"); gchar *tmp =
g_strdup_printf ("Tried to call unknown built-in function: %s",
token);
_error (parser, tmp);
g_free (tmp);
} }
if (_next (parser) != ')') if (_next (parser) != ')')