aboutsummaryrefslogtreecommitdiff
path: root/python/google
diff options
context:
space:
mode:
Diffstat (limited to 'python/google')
-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.')