Index: tracing/tracing/mre/map_single_trace_cmdline.html |
diff --git a/tracing/tracing/mre/map_single_trace_cmdline.html b/tracing/tracing/mre/map_single_trace_cmdline.html |
index 39ea589f86a36b747cf24c112f490b0d6b194009..945e9f7764bc26dff5c83f8bc07804f071c9cb08 100644 |
--- a/tracing/tracing/mre/map_single_trace_cmdline.html |
+++ b/tracing/tracing/mre/map_single_trace_cmdline.html |
@@ -64,8 +64,9 @@ tr.exportTo('tr.mre', function() { |
} |
function mapSingleTraceMain(args) { |
- if (args.length !== 2 && args.length !== 3) |
+ if (args.length !== 2 && args.length !== 3) { |
throw new Error('Must provide two or three arguments.'); |
+ } |
var options = { |
traceHandle: tr.mre.FileHandle.fromDict(JSON.parse(args[0])), |
@@ -85,7 +86,8 @@ tr.exportTo('tr.mre', function() { |
}; |
}); |
-if (tr.isHeadless) |
+if (tr.isHeadless) { |
quit(tr.mre.mapSingleTraceMain(sys.argv.slice(1))); |
+} |
</script> |