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

Unified Diff: scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py

Issue 2413553002: Log more when loading shard output.json fails (Closed)
Patch Set: Created 4 years, 2 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: scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py
diff --git a/scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py b/scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py
index a31ef6f112849b4ed1e2e6dbe824a692b6098e48..fbaa23f1086aa40048a4061bd39d783b30d301cc 100755
--- a/scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py
+++ b/scripts/slave/recipe_modules/swarming/resources/collect_gtest_task.py
@@ -112,8 +112,9 @@ def load_shard_json(output_dir, index):
with open(path) as f:
return json.load(f)
- except (IOError, ValueError, OSError):
+ except (IOError, ValueError, OSError) as e:
print >> sys.stderr, 'Missing or invalid gtest JSON file: %s' % path
+ print >> sys.stderr, '%s: %s' % (type(e).__name__, e)
return None
« 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