[pypy-commit] pypy fastjson: another rpython fix

antocuni noreply at buildbot.pypy.org
Tue Jun 4 19:40:30 CEST 2013


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: fastjson
Changeset: r64778:9777a0934c56
Date: 2013-06-04 18:11 +0200
http://bitbucket.org/pypy/pypy/changeset/9777a0934c56/

Log:	another rpython fix

diff --git a/pypy/module/_fastjson/interp_decoder.py b/pypy/module/_fastjson/interp_decoder.py
--- a/pypy/module/_fastjson/interp_decoder.py
+++ b/pypy/module/_fastjson/interp_decoder.py
@@ -72,7 +72,7 @@
             self.last_type = TYPE_UNKNOWN
             w_name = self.decode_any()
             if self.last_type != TYPE_STRING:
-                self._raise("Key name must be string")
+                self._raise("Key name must be string for object starting at char %d", start)
             self.skip_whitespace()
             ch = self.next()
             if ch != ':':


More information about the pypy-commit mailing list