mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Improve readability of error message
Use the parent type and the function symbol when erroring out if we can't find a property accessor.
This commit is contained in:
parent
493441c84d
commit
c6adbd568a
@ -1636,7 +1636,7 @@ _g_ir_node_build_typelib (GIrNode *node,
|
|||||||
prop->setter);
|
prop->setter);
|
||||||
if (index == -1)
|
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;
|
blob->setter = (guint) index;
|
||||||
@ -1651,7 +1651,7 @@ _g_ir_node_build_typelib (GIrNode *node,
|
|||||||
prop->getter);
|
prop->getter);
|
||||||
if (index == -1)
|
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;
|
blob->getter = (guint) index;
|
||||||
@ -1698,7 +1698,7 @@ _g_ir_node_build_typelib (GIrNode *node,
|
|||||||
function->property);
|
function->property);
|
||||||
if (index == -1)
|
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;
|
blob->setter = function->is_setter;
|
||||||
|
Loading…
Reference in New Issue
Block a user