aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2014-11-20 16:18:53 -0800
committerFeng Xiao <xfxyjwf@gmail.com>2014-11-20 16:18:53 -0800
commit99aa0f9e8f1a88def7bdebf1385678559cda0707 (patch)
tree7ccb663ee9a1c722bf6062435ac705e83568c7e8 /python
parent49bc8c09636ae61f9c685d121278c3738b9a809a (diff)
downloadprotobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.tar.gz
protobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.tar.bz2
protobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.zip
Down-integrate from internal code base.
Diffstat (limited to 'python')
-rwxr-xr-xpython/google/protobuf/text_format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/text_format.py b/python/google/protobuf/text_format.py
index 2cad699c..fb54c50c 100755
--- a/python/google/protobuf/text_format.py
+++ b/python/google/protobuf/text_format.py
@@ -699,7 +699,7 @@ class _Tokenizer(object):
"""
text = self.token
if len(text) < 1 or text[0] not in ('\'', '"'):
- raise self._ParseError('Expected string.')
+ raise self._ParseError('Expected string but found: "%r"' % text)
if len(text) < 2 or text[-1] != text[0]:
raise self._ParseError('String missing ending quote.')