scriptindex: Fix weird error cases
commit7414abb01674b7431e4929b30cb8851224120bb6
authorOlly Betts <olly@survex.com>
Wed, 22 Jun 2022 02:05:52 +0000 (22 14:05 +1200)
committerOlly Betts <olly@survex.com>
Thu, 23 Jun 2022 01:29:08 +0000 (23 13:29 +1200)
tree5fff02578c1acf033c0ec0a6e4d3106462c31029
parent4b0d0e3b8cc7b02a436ddb4bc1871abe6438e0d2
scriptindex: Fix weird error cases

In four cases while handling input data (two cases of bad hex data fed
to `hextobin`, an input data line without a `=`, and `load` failing to
load the specified file) we'd emit a diagnostic that was labelled as an
"error" but really it was handled as a warning as we kept reading input
and the "error" didn't affect the exit status.

It doesn't seem to really make sense to continue in any of these
cases so we now exit with non-zero status right away.

(cherry picked from commit 5a6098d4cc37e172753d4fd2f2f0637f7e8f3009)
xapian-applications/omega/docs/scriptindex.rst
xapian-applications/omega/omegatest
xapian-applications/omega/scriptindex.cc