[pypy-commit] pypy default: Give a more explicit error message.
arigo
noreply at buildbot.pypy.org
Mon Sep 12 11:38:21 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r47213:b8e9360ba188
Date: 2011-09-12 11:37 +0200
http://bitbucket.org/pypy/pypy/changeset/b8e9360ba188/
Log: Give a more explicit error message.
diff --git a/pypy/interpreter/function.py b/pypy/interpreter/function.py
--- a/pypy/interpreter/function.py
+++ b/pypy/interpreter/function.py
@@ -242,8 +242,10 @@
# we have been seen by other means so rtyping should not choke
# on us
identifier = self.code.identifier
- assert Function._all.get(identifier, self) is self, ("duplicate "
- "function ids")
+ previous = Function._all.get(identifier, self)
+ assert previous is self, (
+ "duplicate function ids with identifier=%r: %r and %r" % (
+ identifier, previous, self))
self.add_to_table()
return False
More information about the pypy-commit
mailing list