[pypy-svn] r41337 - pypy/dist/pypy/translator/goal

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Mar 26 13:31:01 CEST 2007


Author: xoraxax
Date: Mon Mar 26 13:30:59 2007
New Revision: 41337

Modified:
   pypy/dist/pypy/translator/goal/translate.py
Log:
Bail out in translate.py if the target could not be found.

Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py	(original)
+++ pypy/dist/pypy/translator/goal/translate.py	Mon Mar 26 13:30:59 2007
@@ -147,7 +147,8 @@
         elif os.path.isfile(arg) and arg.endswith('.py'):
             translateconfig.targetspec = arg[:-3]
         else:
-            args = [arg] + args
+            log.ERROR("Could not find target %r" % (arg, ))
+            sys.exit(1)
 
     targetspec = translateconfig.targetspec
     targetspec_dic = load_target(targetspec)



More information about the Pypy-commit mailing list