Merge "Gracefully handle `buck audit` failure" into stable-2.9
diff --git a/tools/pack_war.py b/tools/pack_war.py
index 6c71d81..f794c5c 100755
--- a/tools/pack_war.py
+++ b/tools/pack_war.py
@@ -33,7 +33,11 @@
 
 def link_jars(libs, directory):
   makedirs(directory)
-  cp = check_output(['buck', 'audit', 'classpath'] + libs)
+  try:
+    cp = check_output(['buck', 'audit', 'classpath'] + libs)
+  except Exception as e:
+    print('call to buck audit failed: %s' % e, file=sys.stderr)
+    exit(1)
   for j in cp.strip().splitlines():
     if j not in jars:
       jars.add(j)