[gobject-introspection/ebassi/property-annotation: 23/24] Improve readability of error message
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ebassi/property-annotation: 23/24] Improve readability of error message
- Date: Thu, 5 Aug 2021 16:47:40 +0000 (UTC)
commit 8d0074205a69c15431c8490c61d0dfe4dfeda3d6
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Jul 27 14:46:15 2021 +0100
Improve readability of error message
Use the parent type and the function symbol when erroring out if we
can't find a property accessor.
girepository/girnode.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/girepository/girnode.c b/girepository/girnode.c
index c550f177..4db679d8 100644
--- a/girepository/girnode.c
+++ b/girepository/girnode.c
@@ -1636,7 +1636,7 @@ _g_ir_node_build_typelib (GIrNode *node,
prop->setter);
if (index == -1)
{
- g_error ("Unknown setter %s for property %s", prop->setter, node->name);
+ g_error ("Unknown setter %s for property %s:%s", prop->setter, parent->name, node->name);
}
blob->setter = (guint) index;
@@ -1651,7 +1651,7 @@ _g_ir_node_build_typelib (GIrNode *node,
prop->getter);
if (index == -1)
{
- g_error ("Unknown getter %s for property %s", prop->getter, node->name);
+ g_error ("Unknown getter %s for property %s:%s", prop->getter, parent->name, node->name);
}
blob->getter = (guint) index;
@@ -1698,7 +1698,7 @@ _g_ir_node_build_typelib (GIrNode *node,
function->property);
if (index == -1)
{
- g_error ("Unknown property %s for accessor %s", function->property, node->name);
+ g_error ("Unknown property %s:%s for accessor %s", parent->name, function->property,
function->symbol);
}
blob->setter = function->is_setter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]