Index: tracing/tracing/mre/reduce_map_results_cmdline.html |
diff --git a/tracing/tracing/mre/reduce_map_results_cmdline.html b/tracing/tracing/mre/reduce_map_results_cmdline.html |
index c726bcd77e17295c52825a49ad23eb49156020db..bff2a17e85612bd6f0466ab8700db7a377de03d1 100644 |
--- a/tracing/tracing/mre/reduce_map_results_cmdline.html |
+++ b/tracing/tracing/mre/reduce_map_results_cmdline.html |
@@ -26,8 +26,9 @@ tr.exportTo('tr.mre', function() { |
} |
function reduceMapResultsMain(args) { |
- if (args.length !== 3) |
+ if (args.length !== 3) { |
throw new Error('Must provide three arguments'); |
+ } |
var options = { |
key: args[0], |
@@ -49,9 +50,10 @@ tr.exportTo('tr.mre', function() { |
reduceFunction); |
}); |
- if (Object.keys(jobResults.pairs).length !== 0) |
+ if (Object.keys(jobResults.pairs).length !== 0) { |
console.log('JOB_RESULTS: ' + JSON.stringify(jobResults.pairs, |
jsonReplacer)); |
+ } |
jobResults.failures.forEach(function(failure) { |
console.log('JOB_FAILURE: ' + JSON.stringify(failure.asDict())); |
}); |
@@ -64,7 +66,8 @@ tr.exportTo('tr.mre', function() { |
}); |
-if (tr.isHeadless) |
+if (tr.isHeadless) { |
quit(tr.mre.reduceMapResultsMain(sys.argv.slice(1))); |
+} |
</script> |