From 99aa0f9e8f1a88def7bdebf1385678559cda0707 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Thu, 20 Nov 2014 16:18:53 -0800 Subject: Down-integrate from internal code base. --- python/google/protobuf/text_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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.') -- cgit v1.2.3