mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
regex: Use critical messages if an unexpected NULL parameter is provided
As programmer error we should be consistent in using criticals.
This commit is contained in:
@@ -483,7 +483,7 @@ translate_match_error (gint errcode)
|
||||
break;
|
||||
case PCRE2_ERROR_NULL:
|
||||
/* NULL argument, this should not happen in GRegex */
|
||||
g_warning ("A NULL argument was passed to PCRE");
|
||||
g_critical ("A NULL argument was passed to PCRE");
|
||||
break;
|
||||
case PCRE2_ERROR_BADOPTION:
|
||||
return "bad options";
|
||||
|
Reference in New Issue
Block a user