Have errFail report cmd and stderr as well as exit code.
This commit is contained in:
+2
-2
@@ -102,8 +102,8 @@ def errFail( *cmd, **kwargs ):
|
|||||||
"Run a command using errRun and raise exception on nonzero exit"
|
"Run a command using errRun and raise exception on nonzero exit"
|
||||||
out, err, ret = errRun( *cmd, **kwargs )
|
out, err, ret = errRun( *cmd, **kwargs )
|
||||||
if ret:
|
if ret:
|
||||||
raise Exception( "errFail: failed with return code %s"
|
raise Exception( "errFail: %s failed with return code %s: %s"
|
||||||
% ret )
|
% ( cmd, ret, err ) )
|
||||||
return out, err, ret
|
return out, err, ret
|
||||||
|
|
||||||
def quietRun( cmd, **kwargs ):
|
def quietRun( cmd, **kwargs ):
|
||||||
|
|||||||
Reference in New Issue
Block a user