diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-02-18 11:33:55 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-02-18 11:33:55 -0700 |
commit | b70e3cc5be5474cf3e45b7db251cf1ee494e26f1 (patch) | |
tree | 15608a3d43abc8b7b3b5a4b7979ff4202ab94b5f /python/servo | |
parent | 554e1ee939187914c55aca9b3355fbdf20dd31c8 (diff) | |
parent | 1ff95c33ca9490969bf7181889e62756484903a2 (diff) | |
download | servo-b70e3cc5be5474cf3e45b7db251cf1ee494e26f1.tar.gz servo-b70e3cc5be5474cf3e45b7db251cf1ee494e26f1.zip |
auto merge of #4877 : psdh/servo/imperror, r=jdm
#4874
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/post_build_commands.py | 9 |
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', |