Kotlin: Allow decoding errors

If an error happens, we'd rather see /something/ than get a decoding
error.
This commit is contained in:
Ian Lynagh
2022-03-23 15:46:07 +00:00
parent aed32cd69b
commit 7c571dd551

View File

@@ -42,9 +42,9 @@ def run_process(cmd):
print("In: " + os.getcwd(), file=sys.stderr)
print("Command failed: " + shlex.join(cmd), file=sys.stderr)
print("stdout output:\n" + e.stdout.decode(encoding='UTF-8',
errors='strict'), file=sys.stderr)
errors='replace'), file=sys.stderr)
print("stderr output:\n" + e.stderr.decode(encoding='UTF-8',
errors='strict'), file=sys.stderr)
errors='replace'), file=sys.stderr)
raise e