cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r554395 - /cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
Date Sun, 08 Jul 2007 17:25:57 GMT
Author: anathaniel
Date: Sun Jul  8 10:25:56 2007
New Revision: 554395

URL: http://svn.apache.org/viewvc?view=rev&rev=554395
Log:
IllegalArgumentException(String, Throwable) is only available in JDK1.5+.

Modified:
    cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java

Modified: cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java?view=diff&rev=554395&r1=554394&r2=554395
==============================================================================
--- cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
(original)
+++ cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
Sun Jul  8 10:25:56 2007
@@ -160,7 +160,8 @@
         try {
             setDirectory(FSDirectory.getDirectory(new File(getDefaultDirectory()), false));
         } catch (IOException ioe) {
-            throw new IllegalArgumentException("Cannot set index directory " + getDefaultDirectory(),
ioe);
+            throw new IllegalArgumentException("Cannot set index directory "
+                    + getDefaultDirectory() + ": " + ioe.getMessage());
         }
     }
 



Mime
View raw message