[vala/staging] codegen: Use the one available source_reference for internal error
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Use the one available source_reference for internal error
- Date: Tue, 9 Mar 2021 07:24:29 +0000 (UTC)
commit 452d0c9c6cbebe3166f9f25ea61c8358f8730332
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 9 07:59:25 2021 +0100
codegen: Use the one available source_reference for internal error
This will at least provide some pointer to where things are going wrong.
In addition to 837d593e00d1a3ca8a6f2d13fb1514bed7672965
See https://gitlab.gnome.org/GNOME/vala/issues/436
codegen/valaccodearraymodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index b9352ce73..8eb995f20 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -148,7 +148,7 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule {
List<CCodeExpression> size = ((GLibValue) value).array_length_cvalues;
if (size == null || size.size < dim) {
- Report.error (null, "internal error: invalid array_length for given dimension");
+ Report.error (array_type.source_reference, "internal: invalid array_length for given
dimension");
return new CCodeInvalidExpression ();
}
return size[dim - 1];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]