Skip to content

Commit

Permalink
change exception message for closed IW
Browse files Browse the repository at this point in the history
  • Loading branch information
vigyasharma committed Apr 21, 2022
1 parent 54a68a9 commit 0ca1fba
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3150,8 +3150,7 @@ public long addIndexes(CodecReader... readers) throws IOException {
ensureOpen();
if (merges.areEnabled() == false) {
throw new AlreadyClosedException(
"Merges are disabled on current writer. "
+ "Cannot execute addIndexes(CodecReaders...) API");
"this IndexWriter is closed. Cannot execute addIndexes(CodecReaders...) API");
}
}

Expand Down

0 comments on commit 0ca1fba

Please sign in to comment.