Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: web/web.py

Issue 2717043002: Add LogDog log stream fetcher code. (Closed)
Patch Set: fix bug, underscore variable names Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « web/inc/tslint.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/web.py
diff --git a/web/web.py b/web/web.py
index c32ea24085d012df2ac9df2cf6dd8c91146a2faa..2f757f47fd772d9710ad472df733aea2262719d3 100755
--- a/web/web.py
+++ b/web/web.py
@@ -120,7 +120,12 @@ class Toolchain(object):
pipes.quote(' '.join(args)))
kwargs['stderr'] = subprocess.STDOUT
- subprocess.check_call(args, **kwargs)
+ try:
+ subprocess.check_call(args, **kwargs)
+ except subprocess.CalledProcessError as e:
+ LOGGER.warning('Non-zero return code (%d) from command.',
+ e.returncode, exc_info=LOGGER.isEnabledFor(logging.DEBUG))
+ sys.exit(e.returncode)
def node(self, *args, **kwargs):
self._call(self._node_exe, *args, **kwargs)
« no previous file with comments | « web/inc/tslint.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698