build: decode error output as utf8 (#30093)
This commit is contained in:
parent
e26901aba4
commit
96ff8d7bd7
1 changed files with 1 additions and 1 deletions
|
@ -16,5 +16,5 @@ try:
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue