Merge "Fix exception message when creating a response"

This commit is contained in:
Jenkins 2016-10-05 21:19:01 +00:00 committed by Gerrit Code Review
commit 891265bc44
1 changed files with 2 additions and 2 deletions

View File

@ -148,9 +148,9 @@ def create_response(request, **kwargs):
encoding = None
if content and not isinstance(content, six.binary_type):
raise TypeError('Content should be a callback or binary data')
raise TypeError('Content should be binary data')
if text and not isinstance(text, six.string_types):
raise TypeError('Text should be a callback or string data')
raise TypeError('Text should be string data')
if json is not None:
text = jsonutils.dumps(json)