Index: SpreadConnection.java
===================================================================
RCS file: /storage/cvsroot/spread/javalib/SpreadConnection.java,v
retrieving revision 1.5
diff -u -u -r1.5 SpreadConnection.java
--- SpreadConnection.java	17 Jun 2003 19:02:00 -0000	1.5
+++ SpreadConnection.java	7 Nov 2003 19:13:55 -0000
@@ -815,9 +815,10 @@
 		
 		// Check if the port is out of range.
 		/////////////////////////////////////
-		if((port < 0) || (port > (32 * 1024)))
+		if (port < 0 || port > (32 * 1024))
 		{
-			throw new SpreadException("Bad port (" + port + ").");
+			throw new SpreadException("Invalid port number '" + port +
+                                      "': Valid range is 0-" + (32 * 1024));
 		}
 		
 		// Create the socket.
