Index: tools/gyp_flag_compare.py |
diff --git a/tools/gyp_flag_compare.py b/tools/gyp_flag_compare.py |
index 6e356cf45542b2941ac1af81b66aea7e6f2dc211..0817a4567cf752c2dd271fda572fbcddc66ad369 100755 |
--- a/tools/gyp_flag_compare.py |
+++ b/tools/gyp_flag_compare.py |
@@ -187,7 +187,12 @@ def CompareLists(gyp, gn, name, dont_care_gyp=None, dont_care_gn=None): |
def Run(command_line): |
"""Run |command_line| as a subprocess and return stdout. Raises on error.""" |
- return subprocess.check_output(command_line, shell=True) |
+ try: |
+ return subprocess.check_output(command_line, shell=True) |
+ except subprocess.CalledProcessError as e: |
+ # Rescue the output we got until the exception happened. |
tandrii(chromium)
2016/07/12 10:59:01
this will only print stdout though. Stderr has alr
Michael Achenbach
2016/07/12 11:11:38
Done.
|
+ print e.output |
+ raise |
def main(): |