Author: toad
Date: 2007-03-17 21:30:31 +0000 (Sat, 17 Mar 2007)
New Revision: 12199

Modified:
   trunk/freenet/src/freenet/crypt/DSAGroup.java
Log:
More information on the invalid group error

Modified: trunk/freenet/src/freenet/crypt/DSAGroup.java
===================================================================
--- trunk/freenet/src/freenet/crypt/DSAGroup.java       2007-03-17 20:31:38 UTC 
(rev 12198)
+++ trunk/freenet/src/freenet/crypt/DSAGroup.java       2007-03-17 21:30:31 UTC 
(rev 12199)
@@ -84,7 +84,9 @@
         try {
                return new DSAGroup(p, q, g);
         } catch (IllegalArgumentException e) {
-               throw new CryptFormatException("Invalid group");
+               CryptFormatException ce = new CryptFormatException("Invalid 
group: "+e);
+               ce.initCause(e);
+               throw ce;
         }
     }



Reply via email to