Author: Armin Rigo <[email protected]>
Branch:
Changeset: r47326:dd71f8944966
Date: 2011-09-18 17:59 +0200
http://bitbucket.org/pypy/pypy/changeset/dd71f8944966/
Log: Improve the error message.
diff --git a/pypy/rlib/rstacklet.py b/pypy/rlib/rstacklet.py
--- a/pypy/rlib/rstacklet.py
+++ b/pypy/rlib/rstacklet.py
@@ -67,6 +67,9 @@
if translated:
assert config is not None, ("you have to pass a valid config, "
"e.g. from 'driver.config'")
+ if config is not None:
+ assert config.translation.continuation, (
+ "stacklet: you have to translate with --continuation")
if (config is None or
config.translation.gc in ('ref', 'boehm', 'none')): # for tests
gcrootfinder = 'n/a'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit