Update of /cvsroot/freenet/freenet/src/freenet/crypt
In directory sc8-pr-cvs1:/tmp/cvs-serv23265/src/freenet/crypt

Modified Files:
        DSAGroup.java 
Log Message:
Hrrm + Better logging

Index: DSAGroup.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/crypt/DSAGroup.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DSAGroup.java       6 Jul 2003 17:14:12 -0000       1.4
+++ DSAGroup.java       8 Oct 2003 23:31:17 -0000       1.5
@@ -27,7 +27,7 @@
        public DSAGroup(String pAsHexString, String qAsHexString, String gAsHexString) 
throws NumberFormatException {
                this.pAsHexString = pAsHexString;
                this.qAsHexString = qAsHexString;
-               this.gAsHexString=gAsHexString;
+               this.gAsHexString = gAsHexString;
                try {
                        this.p = new BigInteger(pAsHexString, 16);
                        this.q = new BigInteger(qAsHexString, 16);
@@ -36,7 +36,7 @@
                catch (NullPointerException e) {
                        // yea, i know, don't catch NPEs .. but _some_ JVMs don't
                        // throw the NFE like they are supposed to (*cough* kaffe)
-                       throw new NumberFormatException(""+e);
+                       throw new NumberFormatException(e+" while converting 
"+pAsHexString+","+qAsHexString+" and "+gAsHexString+" to integers");
                }
        }
     

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

Reply via email to