Problem with standard regex

Kornel Benko kornel at lyx.org
Mon Jan 4 11:54:54 UTC 2021


Am Mon, 4 Jan 2021 12:23:47 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> >> Further investigating shows the error in my own code (out of range access).
> >> The following exception was catched in the try {} section in findAdv(), so 
> >> the only
> >> message was: "Invalid regular expression!". This was misleading.
> > 
> > 
> > Indeed that's not very helpful. Ideally it would say *why* it is not valid.
> 
> Maybe append additional exception message to that generic "Invalid..." 
> message as in attached patch?
> 
> 
> Yuriy

Thanks, you are right. But since the exception may not be only from regex, 'ex.what()'
alone feels better.

Please commit.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210104/90c6fa91/attachment.asc>


More information about the lyx-devel mailing list