LUCENE-1447: improve SegmentTermPositions.getPayload() IOException message

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@714231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-11-15 10:51:01 +00:00
parent 0979fdc423
commit a18441f0de
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ extends SegmentTermDocs implements TermPositions {
public byte[] getPayload(byte[] data, int offset) throws IOException { public byte[] getPayload(byte[] data, int offset) throws IOException {
if (!needToLoadPayload) { if (!needToLoadPayload) {
throw new IOException("Payload cannot be loaded more than once for the same term position."); throw new IOException("Either no payload exists at this term position or an attempt was made to load it more than once.");
} }
// read payloads lazily // read payloads lazily