[pango/pango2: 53/301] attributes: Better error message
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 53/301] attributes: Better error message
- Date: Wed, 22 Jun 2022 15:53:33 +0000 (UTC)
commit d1e80d892be9f38c746a378a15480c67a7761c7e
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 24 07:45:54 2022 -0500
attributes: Better error message
Mention relevant details
pango/pango-attributes.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 20809afc5..add15c1ec 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -2674,7 +2674,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 ();
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]