Fix exception message mistake in WSGI service

The error message when providing a backlog argument either zeroed or negative
 needs to be i18n and also fixed to match with the conditional.

Change-Id: Ib9e15091826e8a68289d90b53116837770e826c7
Closes-Bug: #1487350
This commit is contained in:
liyuanyuan
2015-08-21 08:20:39 +00:00
committed by Sylvain Bauza
parent 86d8f99a05
commit 9e4592eb03

View File

@@ -127,7 +127,7 @@ class Server(service.ServiceBase):
if backlog < 1:
raise exception.InvalidInput(
reason='The backlog must be more than 1')
reason=_('The backlog must be more than 0'))
bind_addr = (host, port)
# TODO(dims): eventlet's green dns/socket module does not actually