summaryrefslogtreecommitdiff
path: root/vala/valamethodcall.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-04-08 15:50:53 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-04-08 15:50:53 +0200
commitbed64669cac1af13ef66736cff8d301865233de8 (patch)
tree084d94f9d42361a9de488015bd24a5c79db65f62 /vala/valamethodcall.vala
parent64799db98cde757b73430271cc179bb1838f1ed7 (diff)
downloadvala-bed64669cac1af13ef66736cff8d301865233de8.tar.gz
vala: Improve error message for wrong number of type-arguments
Diffstat (limited to 'vala/valamethodcall.vala')
-rw-r--r--vala/valamethodcall.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 75bf6b3a1..7333891b4 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -379,11 +379,11 @@ public class Vala.MethodCall : Expression, CallableExpression {
int n_type_args = ma.get_type_arguments ().size;
if (n_type_args > 0 && n_type_args < n_type_params) {
error = true;
- Report.error (ma.source_reference, "too few type arguments");
+ Report.error (ma.source_reference, "too few type arguments for `%s'", m.to_string ());
return false;
} else if (n_type_args > 0 && n_type_args > n_type_params) {
error = true;
- Report.error (ma.source_reference, "too many type arguments");
+ Report.error (ma.source_reference, "too many type arguments for `%s'", m.to_string ());
return false;
}
}