Author: toad
Date: 2008-02-18 13:55:48 +0000 (Mon, 18 Feb 2008)
New Revision: 18041
Modified:
trunk/freenet/src/freenet/support/io/BucketTools.java
Log:
Slightly better error message
Modified: trunk/freenet/src/freenet/support/io/BucketTools.java
===================================================================
--- trunk/freenet/src/freenet/support/io/BucketTools.java 2008-02-18
13:53:14 UTC (rev 18040)
+++ trunk/freenet/src/freenet/support/io/BucketTools.java 2008-02-18
13:55:48 UTC (rev 18041)
@@ -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+ ')');
+ throw new IOException("Could not move
required quantity of data: "+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+ ')');
+ throw new IOException("Could not move
required quantity of data: "+bytes+" (moved "+moved+" of "+truncateLength+"):
unable to read from "+is);
}
os.write(buf, 0, bytes);
moved += bytes;