Skip to content

gregex: Use pcre2 error messages if we don't provide a specific one

Marco Trevisan requested to merge 3v1n0/glib:regex-errors-msg-cleanups into main

In case we got a compilation or match error we should try to provide some useful error message, if possible, before returning a quite obscure "internal error" or "unknown error" string.

So rely on PCRE2 strings even if they're not translated they can provide better information than the ones we're currently giving.

Related to: #2760 (closed)

Merge request reports