]> git.notmuchmail.org Git - notmuch/commit - lib/regexp-fields.cc
Prepend regerror() messages with "regexp error: "
authorLuis Ressel <aranea@aixah.de>
Mon, 11 Mar 2019 17:14:49 +0000 (18:14 +0100)
committerDavid Bremner <david@tethera.net>
Tue, 12 Mar 2019 01:24:55 +0000 (22:24 -0300)
commit9f7e851263b96acacc9ea542e9f5d837563fea05
treef23cc706248815e67aaf75e3a4759fbff7be22d5
parenta1e649276e181bbb2f14594628333d4337e3fc7c
Prepend regerror() messages with "regexp error: "

The exact error messages returned by regerror() aren't standardized;
relying on them isn't portable. Thus, add a a prefix to make clear that
the subsequent message is a regexp parsing error, and only look for this
prefix in the test suite, ignoring the rest of the message.
lib/regexp-fields.cc
test/T650-regexp-query.sh