Handle non-zero return codes in mach run

This commit is contained in:
Matt Brubeck 2015-06-04 11:22:14 -07:00
parent 76cf5bb45a
commit 4b5c43835b

View file

@ -80,6 +80,9 @@ class MachCommands(CommandBase):
try:
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:
if e.errno == 2:
print("Servo Binary can't be found! Run './mach build'"