diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-24 07:45:54 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-24 07:46:42 -0500 |
commit | 33420cc5bb452cd51e06743c053ae4e224ae5653 (patch) | |
tree | 281f35b85cbcb99b35010572f8ab68e715b4d752 | |
parent | 69d2eb8ee06edba0e83278ce98de7b61cb6cdb43 (diff) | |
download | pango-33420cc5bb452cd51e06743c053ae4e224ae5653.tar.gz |
attributes: Better error message
Mention relevant details
-rw-r--r-- | pango/pango-attributes.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index 60d14706..a984e6f2 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -2668,7 +2668,12 @@ attr_print (GString *str, else if ((features = pango_attribute_as_font_features (attr)) != NULL) g_string_append_printf (str, " \"%s\"", features->features); else - g_assert_not_reached (); + { + g_warning ("Unhandled attribute type %s (%d)\n", + get_attr_type_nick (attr->klass->type), + attr->klass->type); + g_assert_not_reached (); + } } /** |