build: fix npm-run python bytes error (#28932)
This commit is contained in:
parent
77444867b7
commit
37f7e66873
1 changed files with 2 additions and 8 deletions
|
@ -15,12 +15,6 @@ args = [cmd, "run",
|
|||
try:
|
||||
subprocess.check_output(args, stderr=subprocess.STDOUT)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(
|
||||
"NPM script '"
|
||||
+ sys.argv[2]
|
||||
+ "' failed with code '"
|
||||
+ str(e.returncode)
|
||||
+ "':\n"
|
||||
+ e.output
|
||||
)
|
||||
error_msg = "NPM script '{}' failed with code '{}':\n".format(sys.argv[2], e.returncode)
|
||||
print(error_msg + e.output.decode('ascii'))
|
||||
sys.exit(e.returncode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue