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

Unified Diff: tools/run-bisect-perf-regression.py

Issue 16007011: Display traceback after failing to load cfg. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/run-bisect-perf-regression.py
diff --git a/tools/run-bisect-perf-regression.py b/tools/run-bisect-perf-regression.py
index 78e570a788c6a1147593ffac1e82324b916f57d8..b7738604006b6b558f020f09c1894f9775d15f79 100755
--- a/tools/run-bisect-perf-regression.py
+++ b/tools/run-bisect-perf-regression.py
@@ -17,6 +17,7 @@ import optparse
import os
import subprocess
import sys
+import traceback
def LoadConfigFile(path_to_file):
@@ -39,6 +40,9 @@ def LoadConfigFile(path_to_file):
return local_vars['config']
except:
+ print
+ traceback.print_exc()
+ print
return None
@@ -148,7 +152,8 @@ def main():
config = LoadConfigFile(path_to_file)
if not config:
- print 'Error: Could not load config file.'
+ print 'Error: Could not load config file. Double check your changes to '\
+ 'run-bisect-perf-regression.cfg for syntax errors.'
print
return 1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698