mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +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:
parent
6caf952e48
commit
0f869ec5c6
@ -483,7 +483,7 @@ translate_match_error (gint errcode)
|
|||||||
break;
|
break;
|
||||||
case PCRE2_ERROR_NULL:
|
case PCRE2_ERROR_NULL:
|
||||||
/* NULL argument, this should not happen in GRegex */
|
/* 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;
|
break;
|
||||||
case PCRE2_ERROR_BADOPTION:
|
case PCRE2_ERROR_BADOPTION:
|
||||||
return "bad options";
|
return "bad options";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user