Author: toad
Date: 2007-02-13 23:56:30 +0000 (Tue, 13 Feb 2007)
New Revision: 11778
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
Better error message when adding a corrupt ref with a corrupt signature
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2007-02-13 23:38:40 UTC
(rev 11777)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2007-02-13 23:56:30 UTC
(rev 11778)
@@ -432,6 +432,9 @@
throw new
ReferenceSignatureVerificationException("The integrity of the reference has
been compromized!"+errCause);
}else
this.isSignatureVerificationSuccessfull
= true;
+ } catch (NumberFormatException e) {
+ Logger.error(this, "Invalid reference: "+e, e);
+ throw new
ReferenceSignatureVerificationException("The node reference you added is
invalid: It does not have a valid signature.");
} catch (UnsupportedEncodingException e) {
// duh ?
Logger.error(this, "Error while signing the
node identity!"+e);