[vala/0.48] 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/0.48] codegen: Use the one available source_reference for internal error
- Date: Sun, 14 Mar 2021 15:47:45 +0000 (UTC)
commit 43b461b25fb131e7322b9c9d74a13f6ebc803e46
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 b2b2e7e1e..851778171 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]