[Checkins] SVN: z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py Give a more obvious error message if an executable can't be found.

Christian Theune ct at gocept.com
Thu Aug 6 03:48:07 EDT 2009


Log message for revision 102502:
  Give a more obvious error message if an executable can't be found.
  

Changed:
  U   z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py

-=-
Modified: z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py
===================================================================
--- z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py	2009-08-06 06:41:18 UTC (rev 102501)
+++ z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py	2009-08-06 07:48:07 UTC (rev 102502)
@@ -90,6 +90,8 @@
             full = os.path.join(p, c)
             if os.path.exists(full):
                 return full
+    raise RuntimeError(
+        'Can\'t find executable for any of: %s' % candidates)
 
 class Builder:
     def __init__(self):



More information about the Checkins mailing list