changeset 383:45cbb0639b6f

Improve error message produced by shell tools.
author cmlenz
date Wed, 25 Jul 2007 19:26:42 +0000
parents 2078b20186cf
children dff1cde945aa
files bitten/build/shtools.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/build/shtools.py
+++ b/bitten/build/shtools.py
@@ -36,8 +36,8 @@
     returncode = execute(ctxt, executable=executable, file_=file_,
                          output=output, args=args)
     if returncode != 0:
-        ctxt.error('Executing %s failed (%s)' % (executable or file_,
-                                                 returncode))
+        ctxt.error('Executing %s failed (error code %s)' % (executable or file_,
+                                                            returncode))
 
 def pipe(ctxt, executable=None, file_=None, input_=None, output=None,
          args=None):
@@ -61,8 +61,8 @@
     returncode = execute(ctxt, executable=executable, file_=file_,
                          input_=input_, output=output, args=args)
     if returncode != 0:
-        ctxt.error('Piping through %s failed (%s)' % (executable or file_,
-                                                      returncode))
+        ctxt.error('Piping through %s failed (error code %s)'
+                   % (executable or file_, returncode))
 
 def execute(ctxt, executable=None, file_=None, input_=None, output=None,
             args=None):
Copyright (C) 2012-2017 Edgewall Software