auto merge of #4877 : psdh/servo/imperror, r=jdm

#4874
This commit is contained in:
bors-servo 2015-02-18 11:33:55 -07:00
commit b70e3cc5be

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',