lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1065465 - /lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java
Date Mon, 31 Jan 2011 01:57:58 GMT
Author: koji
Date: Mon Jan 31 01:57:57 2011
New Revision: 1065465

URL: http://svn.apache.org/viewvc?rev=1065465&view=rev
Log:
print out version infos in JavaBinCodec when throwing exception

Modified:
    lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java

Modified: lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java?rev=1065465&r1=1065464&r2=1065465&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java (original)
+++ lucene/dev/trunk/solr/src/common/org/apache/solr/common/util/JavaBinCodec.java Mon Jan
31 01:57:57 2011
@@ -96,7 +96,8 @@ public class JavaBinCodec {
     FastInputStream dis = FastInputStream.wrap(is);
     version = dis.readByte();
     if (version != VERSION) {
-      throw new RuntimeException("Invalid version or the data in not in 'javabin' format");
+      throw new RuntimeException("Invalid version (expected " + VERSION +
+          ", but " + version + ") or the data in not in 'javabin' format");
     }
     return readVal(dis);
   }



Mime
View raw message