[pypy-commit] pypy improve-errors-again: (Ronan, Edd) Improve an error message.

vext01 noreply at buildbot.pypy.org
Wed Aug 28 18:26:20 CEST 2013


Author: Edd Barrett <vext01 at gmail.com>
Branch: improve-errors-again
Changeset: r66415:3f413263db37
Date: 2013-08-28 15:40 +0100
http://bitbucket.org/pypy/pypy/changeset/3f413263db37/

Log:	(Ronan, Edd) Improve an error message.

diff --git a/rpython/annotator/unaryop.py b/rpython/annotator/unaryop.py
--- a/rpython/annotator/unaryop.py
+++ b/rpython/annotator/unaryop.py
@@ -728,7 +728,7 @@
 
     def setattr(pbc, s_attr, s_value):
         if not pbc.isNone():
-            raise AnnotatorError("setattr on %r" % pbc)
+            raise AnnotatorError("Cannot modify attribute of a pre-built constant")
 
     def call(pbc, args):
         bookkeeper = getbookkeeper()


More information about the pypy-commit mailing list