Skip to content

Commit

Permalink
build: decode error output as utf8 (#30094)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
  • Loading branch information
trop[bot] and nornagon committed Jul 14, 2021
1 parent 5fbcee0 commit cb614d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/npm-run.py
Expand Up @@ -16,5 +16,5 @@
subprocess.check_output(args, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
error_msg = "NPM script '{}' failed with code '{}':\n".format(sys.argv[2], e.returncode)
print(error_msg + e.output.decode('ascii'))
print(error_msg + e.output.decode('utf8'))
sys.exit(e.returncode)

0 comments on commit cb614d1

Please sign in to comment.