Fix some typos in wsgi.py & catalog.py

Change-Id: I18f74b726caa208585f193b90824824aa3bbd272
This commit is contained in:
zhangyanxian 2016-08-25 06:13:37 +00:00
parent 8c1355f4b7
commit 50744ca68e
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ class Controller(object):
if key not in valid_query_params:
raise exc.HTTPBadRequest(
_('Bad value passed to filter. '
'Got {key}, exected:{valid}').format(
'Got {key}, expected:{valid}').format(
key=key, valid=', '.join(valid_query_params)))
if key == 'sort_keys':
available_sort_keys = ['name', 'created',

View File

@ -921,7 +921,7 @@ class JSONPatchDeserializer(TextDeserializer):
jsonschema.validate(property_to_update,
validation_schemas.PKG_UPDATE_SCHEMA)
except jsonschema.ValidationError as e:
LOG.error(_LE("Schema validation error occured: {error}")
LOG.error(_LE("Schema validation error occurred: {error}")
.format(error=e))
raise webob.exc.HTTPBadRequest(explanation=e.message)