scriptindex: Improve error handling for LOAD action
commit1d3337dc57fd50a64e8d03512df7220f2dea1b5f
authorOlly Betts <olly@survex.com>
Fri, 2 Nov 2018 03:42:20 +0000 (2 16:42 +1300)
committerOlly Betts <olly@survex.com>
Fri, 2 Nov 2018 04:20:09 +0000 (2 17:20 +1300)
treef928897c8c94fd964c6b178d4e4979cbe891631f
parent783b9bd97a07905786ab6205065763a3055c8861
scriptindex: Improve error handling for LOAD action

If we successfully opened the file but hit an error reading
from it we would have reported the partial contents read so far instead
of the filename in the error message.

(cherry picked from commit 069810b80ef586857a6bd530c87262f04d81c4ee)
xapian-applications/omega/scriptindex.cc