Index: third_party/mojo/src/mojo/public/tools/git/dart_pub_get.py |
diff --git a/third_party/mojo/src/mojo/public/tools/git/dart_pub_get.py b/third_party/mojo/src/mojo/public/tools/git/dart_pub_get.py |
index a984de98d2e838c077e23bd9a2a56a3895aaeea3..f2b0ddc3b17896095ed2a2adf208847cf0d36eb9 100755 |
--- a/third_party/mojo/src/mojo/public/tools/git/dart_pub_get.py |
+++ b/third_party/mojo/src/mojo/public/tools/git/dart_pub_get.py |
@@ -24,10 +24,16 @@ def pub_get(dart_sdk_path, target_directory): |
# simultaneous builds in different repos stomping on each other. |
env = os.environ.copy() |
env["PUB_CACHE"] = os.path.join(os.getcwd(), "dart-pub-cache") |
- subprocess.check_output(cmd, shell=False, |
- stderr=subprocess.STDOUT, |
- cwd=target_directory, |
- env=env) |
+ try: |
+ subprocess.check_output(cmd, shell=False, |
+ stderr=subprocess.STDOUT, |
+ cwd=target_directory, |
+ env=env) |
+ except subprocess.CalledProcessError as e: |
+ print('Error running pub get in %s' % target_directory) |
+ print(e.output) |
+ raise e |
+ |
def main(repository_root, dart_sdk_path, dirs_to_ignore): |