Author: Edd Barrett <vex...@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() _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit