diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2014-11-20 16:18:53 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2014-11-20 16:18:53 -0800 |
commit | 99aa0f9e8f1a88def7bdebf1385678559cda0707 (patch) | |
tree | 7ccb663ee9a1c722bf6062435ac705e83568c7e8 /python | |
parent | 49bc8c09636ae61f9c685d121278c3738b9a809a (diff) | |
download | protobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.tar.gz protobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.tar.bz2 protobuf-99aa0f9e8f1a88def7bdebf1385678559cda0707.zip |
Down-integrate from internal code base.
Diffstat (limited to 'python')
-rwxr-xr-x | python/google/protobuf/text_format.py | 2 |
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.') |