summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fontmap.c
diff options
context:
space:
mode:
authorNaveen M K <naveen@syrusdark.website>2021-01-19 18:11:06 +0000
committerNaveen M K <naveen@syrusdark.website>2021-01-19 18:11:06 +0000
commit0512bbcf4aab1ff62aa9d8f41ec2ca88ef4cfe2a (patch)
tree2187aa3db3de8b236fbc2c5e8a51276b7b4ade85 /pango/pangocairo-fontmap.c
parent6cb7f3338594bc6065a5b7d9060d67aab4c20220 (diff)
downloadpango-0512bbcf4aab1ff62aa9d8f41ec2ca88ef4cfe2a.tar.gz
use g_critical instead of g_error
according to docs of pango_cairo_font_map_new() it shouldn't crash the application by calling g_error. Instead, it should return NULL and it can log that using g_critical.
Diffstat (limited to 'pango/pangocairo-fontmap.c')
-rw-r--r--pango/pangocairo-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index 47c2245f..120ccb89 100644
--- a/pango/pangocairo-fontmap.c
+++ b/pango/pangocairo-fontmap.c
@@ -101,7 +101,7 @@ pango_cairo_font_map_new (void)
" fontconfig"
#endif
;
- g_error ("Unknown $PANGOCAIRO_BACKEND value.\n Available backends are:%s", backends);
+ g_critical ("Unknown $PANGOCAIRO_BACKEND value.\n Available backends are:%s", backends);
}
return NULL;
}