Author: toad
Date: 2008-03-01 17:53:41 +0000 (Sat, 01 Mar 2008)
New Revision: 18290
Modified:
trunk/freenet/src/freenet/support/io/BucketTools.java
Log:
Better error message.
Modified: trunk/freenet/src/freenet/support/io/BucketTools.java
===================================================================
--- trunk/freenet/src/freenet/support/io/BucketTools.java 2008-03-01
15:33:25 UTC (rev 18289)
+++ trunk/freenet/src/freenet/support/io/BucketTools.java 2008-03-01
17:53:41 UTC (rev 18290)
@@ -284,7 +284,7 @@
if(bytes <= 0) {
if(truncateLength == Long.MAX_VALUE)
break;
- throw new IOException("Could not move
required quantity of data: "+bytes+" (moved "+moved+" of "+truncateLength+"):
unable to read from "+is);
+ throw new IOException("Could not move
required quantity of data in copyTo: "+bytes+" (moved "+moved+" of
"+truncateLength+"): unable to read from "+is);
}
os.write(buf, 0, bytes);
moved += bytes;
@@ -310,7 +310,7 @@
if(bytes <= 0) {
if(truncateLength == Long.MAX_VALUE)
break;
- throw new IOException("Could not move
required quantity of data: "+bytes+" (moved "+moved+" of "+truncateLength+"):
unable to read from "+is);
+ throw new IOException("Could not move
required quantity of data in copyFrom: "+bytes+" (moved "+moved+" of
"+truncateLength+"): unable to read from "+is);
}
os.write(buf, 0, bytes);
moved += bytes;