Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c571dd

Browse files
committed
Kotlin: Allow decoding errors
If an error happens, we'd rather see /something/ than get a decoding error.
1 parent aed32cd commit 7c571dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/kotlin-extractor/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def run_process(cmd):
4242
print("In: " + os.getcwd(), file=sys.stderr)
4343
print("Command failed: " + shlex.join(cmd), file=sys.stderr)
4444
print("stdout output:\n" + e.stdout.decode(encoding='UTF-8',
45-
errors='strict'), file=sys.stderr)
45+
errors='replace'), file=sys.stderr)
4646
print("stderr output:\n" + e.stderr.decode(encoding='UTF-8',
47-
errors='strict'), file=sys.stderr)
47+
errors='replace'), file=sys.stderr)
4848
raise e
4949

5050

0 commit comments

Comments
 (0)