Author: remm Date: Fri Dec 9 09:04:06 2005 New Revision: 355539 URL: http://svn.apache.org/viewcvs?rev=355539&view=rev Log: - Convert to string error codes.
Modified: tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java Modified: tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=355539&r1=355538&r2=355539&view=diff ============================================================================== --- tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java (original) +++ tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java Fri Dec 9 09:04:06 2005 @@ -541,12 +541,12 @@ // Bind the server socket int ret = Socket.bind(serverSock, inetAddress); if (ret != 0) { - throw new Exception(sm.getString("endpoint.init.bind", "" + ret)); + throw new Exception(sm.getString("endpoint.init.bind", Error.strerror(ret))); } // Start listening on the server socket ret = Socket.listen(serverSock, backlog); if (ret != 0) { - throw new Exception(sm.getString("endpoint.init.listen", "" + ret)); + throw new Exception(sm.getString("endpoint.init.listen", Error.strerror(ret))); } if (OS.IS_WIN32 || OS.IS_WIN64) { // On Windows set the reuseaddr flag after the bind/listen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]