You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/02/06 17:07:35 UTC

lucene-solr git commit: improve exception message

Repository: lucene-solr
Updated Branches:
  refs/heads/master 3c15c3f03 -> 0404be94a


improve exception message


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0404be94
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0404be94
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0404be94

Branch: refs/heads/master
Commit: 0404be94a7e62dbb6e2d25ee8a3a10b975dd470e
Parents: 3c15c3f
Author: Mike McCandless <mi...@apache.org>
Authored: Sat Feb 6 11:08:07 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Sat Feb 6 11:08:07 2016 -0500

----------------------------------------------------------------------
 lucene/core/src/java/org/apache/lucene/index/IndexWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0404be94/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
index a10d2e1..8517fb1 100644
--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
@@ -755,7 +755,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit, Accountable {
    */
   public IndexWriter(Directory d, IndexWriterConfig conf) throws IOException {
     if (d instanceof FSDirectory && ((FSDirectory) d).checkPendingDeletions()) {
-      throw new IllegalArgumentException("Directory " + d + " is still has pending deleted files; cannot initialize IndexWriter");
+      throw new IllegalArgumentException("Directory " + d + " still has pending deleted files; cannot initialize IndexWriter");
     }
 
     conf.setIndexWriter(this); // prevent reuse by other instances