Author: blured75
Date: 2005-11-09 23:18:07 +0000 (Wed, 09 Nov 2005)
New Revision: 7510
Modified:
trunk/freenet/src/freenet/node/Node.java
Log:
modify the usage test on main method to allow to get 2 args and not only one :)
Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java 2005-11-09 23:00:15 UTC (rev
7509)
+++ trunk/freenet/src/freenet/node/Node.java 2005-11-09 23:18:07 UTC (rev
7510)
@@ -240,7 +240,8 @@
* Then create a node.
*/
public static void main(String[] args) throws IOException {
- if (args.length != 1) {
+ int length = args.length;
+ if (length < 1 && length > 2) {
System.out.println("Usage: $ java freenet.node.Node
<portNumber>");
return;
}
@@ -423,7 +424,7 @@
} else {
int status = is.getStatus();
String msg = "Failed inserting "+block+" : "+is.getStatusString();
- if(status == is.ROUTE_NOT_FOUND)
+ if(status == InsertSender.ROUTE_NOT_FOUND)
msg += " - this is normal on small networks; the data will
still be propagated, but it can't find the 20+ nodes needed for full success";
Logger.error(this, msg);
switch(is.getStatus()) {