run(): print command as string on error

This commit is contained in:
mpeterv 2016-04-02 13:41:04 +03:00
parent eb7f0d55fc
commit 22491fe141

View File

@ -107,7 +107,7 @@ def run(*args, **kwargs):
sys.stdout.write(exception.output.decode("UTF-8")) sys.stdout.write(exception.output.decode("UTF-8"))
sys.exit("Error: got exitcode {} from command {}".format( sys.exit("Error: got exitcode {} from command {}".format(
exception.returncode, args)) exception.returncode, " ".join(args)))
if opts.verbose and capture: if opts.verbose and capture:
sys.stdout.write(output.decode("UTF-8")) sys.stdout.write(output.decode("UTF-8"))