improving mach run error message in case of missing binaries

This commit is contained in:
Prabhjyot Singh Sodhi 2015-02-09 23:53:55 +05:30
parent 29d24a5049
commit 1ff95c33ca

View file

@ -75,7 +75,14 @@ class MachCommands(CommandBase):
else:
args = args + params
subprocess.check_call(args, env=env)
try:
subprocess.check_call(args, env=env)
except OSError as e:
if e.errno == 2:
print("Servo Binary can't be found! Run './mach build'"
" and try again!")
else:
raise e
@Command('doc',
description='Generate documentation',