mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Handle non-zero return codes in mach run
This commit is contained in:
parent
76cf5bb45a
commit
4b5c43835b
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ class MachCommands(CommandBase):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(args, env=env)
|
subprocess.check_call(args, env=env)
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
print("Servo exited with return value %d" % e.returncode)
|
||||||
|
return e.returncode
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == 2:
|
if e.errno == 2:
|
||||||
print("Servo Binary can't be found! Run './mach build'"
|
print("Servo Binary can't be found! Run './mach build'"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue