aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-02-09 23:53:55 +0530
committerPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-02-13 00:20:01 +0530
commit1ff95c33ca9490969bf7181889e62756484903a2 (patch)
treef27c3179f598755b68abdeeba95911f3ad2b64dc /python/servo
parent29d24a5049cda10111bb36f3ca2d798e68137107 (diff)
downloadservo-1ff95c33ca9490969bf7181889e62756484903a2.tar.gz
servo-1ff95c33ca9490969bf7181889e62756484903a2.zip
improving mach run error message in case of missing binaries
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/post_build_commands.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 7cec97f0d0a..d427fe1181f 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -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',