Skip to content

Commit

Permalink
build: decode error output as utf8 (electron#30093)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and BlackHole1 committed Aug 27, 2021
1 parent 6a42d99 commit 2fa1547
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 2fa1547

Please sign in to comment.