mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Kotlin: Allow decoding errors
If an error happens, we'd rather see /something/ than get a decoding error.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user