Have errFail report cmd and stderr as well as exit code.

This commit is contained in:
Bob Lantz
2012-03-22 19:08:09 -07:00
parent 4deb735425
commit a5af91d0d3
+2 -2
View File
@@ -102,8 +102,8 @@ def errFail( *cmd, **kwargs ):
"Run a command using errRun and raise exception on nonzero exit"
out, err, ret = errRun( *cmd, **kwargs )
if ret:
raise Exception( "errFail: failed with return code %s"
% ret )
raise Exception( "errFail: %s failed with return code %s: %s"
% ( cmd, ret, err ) )
return out, err, ret
def quietRun( cmd, **kwargs ):