Author: zothar
Date: 2007-07-15 15:04:33 +0000 (Sun, 15 Jul 2007)
New Revision: 14135
Modified:
trunk/freenet/src/freenet/node/fcp/ProtocolErrorMessage.java
Log:
FCP: Added DARKNET_ONLY Protocol Error Message code
Modified: trunk/freenet/src/freenet/node/fcp/ProtocolErrorMessage.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ProtocolErrorMessage.java
2007-07-15 13:42:42 UTC (rev 14134)
+++ trunk/freenet/src/freenet/node/fcp/ProtocolErrorMessage.java
2007-07-15 15:04:33 UTC (rev 14135)
@@ -52,6 +52,7 @@
static final int CANNOT_PEER_WITH_SELF = 28;
static final int DUPLICATE_PEER_REF = 29;
static final int OPENNET_DISABLED = 30;
+ static final int DARKNET_ONLY = 31;
final int code;
final String extra;
@@ -121,6 +122,8 @@
return "Node already has a peer with that ref";
case OPENNET_DISABLED:
return "Opennet is currently disabled in the node's
configuration";
+ case DARKNET_ONLY:
+ return "Operation only available on a darknet peer";
default:
Logger.error(this, "Unknown error code: "+code, new
Exception("debug"));
return "(Unknown)";