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

Unified Diff: tools/isolate/trace_test_cases.py

Issue 10442068: Add more consitent exception generation and handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix small bug Created 8 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 | « tools/isolate/trace_inputs_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/trace_test_cases.py
diff --git a/tools/isolate/trace_test_cases.py b/tools/isolate/trace_test_cases.py
index c509d5c8d15cb232a787d288f417050c339544a5..9cf2406960c4de8729829f9a53622d26d52581ee 100755
--- a/tools/isolate/trace_test_cases.py
+++ b/tools/isolate/trace_test_cases.py
@@ -57,8 +57,9 @@ def trace_test_case(
try:
results, simplified = trace_inputs.load_trace(logname, root_dir, api)
break
- except Exception:
- print '\nFailed loading the trace for: %s' % ' '.join(cmd)
+ except trace_inputs.TracingFailure, e:
+ print >> sys.stderr, '\nTracing failed for: %s' % ' '.join(cmd)
+ print >> sys.stderr, str(e)
if simplified:
variables = trace_inputs.generate_dict(simplified, cwd_dir, product_dir)
else:
« no previous file with comments | « tools/isolate/trace_inputs_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698