You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2011/04/01 00:37:05 UTC
svn commit: r1087469 -
/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java
Author: jbellis
Date: Thu Mar 31 22:37:04 2011
New Revision: 1087469
URL: http://svn.apache.org/viewvc?rev=1087469&view=rev
Log:
add file path to seek-past-eof exception
patch by jbellis
Modified:
cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java
Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java?rev=1087469&r1=1087468&r2=1087469&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/util/BufferedRandomAccessFile.java Thu Mar 31 22:37:04 2011
@@ -338,7 +338,7 @@ public class BufferedRandomAccessFile ex
throw new IllegalArgumentException("new position should not be negative");
if (isReadOnly() && newPosition > fileLength)
- throw new EOFException("unable to seek past the end of the file in read-only mode.");
+ throw new EOFException("unable to seek past the end of " + filePath + " in read-only mode.");
current = newPosition;