def errFail(*cmd, **kwargs):
 (out, err, ret) = errRun(*cmd, **kwargs)
 if ret:
  raise Exception(('errFail: %s failed with return code %s: %s' % (cmd, ret, err)))
 return (out, err, ret)

def errFail ( * cmd , ** kwargs ) : ( out , err , ret ) = errRun ( * cmd , ** kwargs ) if ret : raise Exception ( ( 'errFail: %s failed with return code %s: %s' % ( cmd , ret , err ) ) ) return ( out , err , ret )
run a command using errrun and raise exception on nonzero exit .