Skip to content
Snippets Groups Projects
Commit a5af91d0 authored by Bob Lantz's avatar Bob Lantz
Browse files

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

parent 4deb7354
No related branches found
No related tags found
No related merge requests found
......@@ -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 ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment