Update of /cvsroot/freenet/freenet/src/freenet/support
In directory sc8-pr-cvs1:/tmp/cvs-serv25922/src/freenet/support

Modified Files:
        Fields.java 
Log Message:
More informative message if we encounter an error.

Index: Fields.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/Fields.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Fields.java 20 May 2003 19:54:29 -0000      1.18
+++ Fields.java 14 Oct 2003 12:37:22 -0000      1.19
@@ -204,7 +204,7 @@
             s = '0' + s;
             
         if (out.length < off + s.length()/2)
-            throw new IndexOutOfBoundsException();
+            throw new IndexOutOfBoundsException("Output buffer too small for input 
("+out.length+"<"+off + s.length()/2+")");
             
         byte b;
         for (int i=0; i < s.length(); i++) {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to