[Checkins] SVN: zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/ fix silly error message problem

Fred Drake fdrake at gmail.com
Wed Feb 29 14:00:39 UTC 2012


Log message for revision 124492:
  fix silly error message problem

Changed:
  U   zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/README.txt
  U   zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/__init__.py

-=-
Modified: zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/README.txt
===================================================================
--- zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/README.txt	2012-02-29 02:00:49 UTC (rev 124491)
+++ zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/README.txt	2012-02-29 14:00:38 UTC (rev 124492)
@@ -786,6 +786,7 @@
     Running uninstall recipe.
     --del acme
 
+
 Regression Tests
 ================
 
@@ -795,21 +796,22 @@
 If we do not provide a runscript, we get an exception (bug was: improperly
 formatted exception string, contained literal '%s'):
 
-    .. >>> write('buildout.cfg',
-    .. ... """
-    .. ... [buildout]
-    .. ... parts = zoperc
-    .. ...
-    .. ... [zoperc]
-    .. ... recipe = zc.recipe.rhrc
-    .. ... parts = zope
-    .. ... dest = %(dest)s
-    .. ...
-    .. ... [zope]
-    .. ... """ % dict(dest=demo))
-    .. >>> print system('bin/buildout'),
-    .. Installing zoperc.
-    .. zc.recipe.rhrc: Part zope doesn't define run-script and /demo/zope doesn't exist.
-    .. While:
-    ..   Installing zoperc.
-    .. Error: No script for zope
+    >>> write('buildout.cfg',
+    ... """
+    ... [buildout]
+    ... parts = zoperc
+    ...
+    ... [zoperc]
+    ... recipe = zc.recipe.rhrc
+    ... parts = zope
+    ... dest = %(dest)s
+    ...
+    ... [zope]
+    ... """ % dict(dest=demo))
+    >>> print system('bin/buildout'),
+
+        Installing zoperc.
+    zc.recipe.rhrc: Part zope doesn't define run-script and /demo/zope doesn't exist.
+    While:
+      Installing zoperc.
+    Error: No script for zope

Modified: zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/__init__.py
===================================================================
--- zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/__init__.py	2012-02-29 02:00:49 UTC (rev 124491)
+++ zc.recipe.rhrc/trunk/src/zc/recipe/rhrc/__init__.py	2012-02-29 14:00:38 UTC (rev 124492)
@@ -129,7 +129,7 @@
             logger.error("Part %s doesn't define run-script "
                          "and %s doesn't exist."
                          % (part, path))
-            raise zc.buildout.UserError("No script for %s", part)
+            raise zc.buildout.UserError("No script for", part)
 
         return script + ' "$@"'
 



More information about the checkins mailing list