From 9e4592eb0364c21e6ccbf21acc28288951b8ca61 Mon Sep 17 00:00:00 2001 From: liyuanyuan Date: Fri, 21 Aug 2015 08:20:39 +0000 Subject: [PATCH] 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 --- nova/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/wsgi.py b/nova/wsgi.py index b3d3f3323955..e0d49c29d8d1 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -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