Index: tools/profviz/worker.js |
diff --git a/tools/profviz/worker.js b/tools/profviz/worker.js |
index 60a557f982d0302e75b21ab73269bc33d43f0dda..b17ca29f587f67ca1a5480fe06363378940d55fc 100644 |
--- a/tools/profviz/worker.js |
+++ b/tools/profviz/worker.js |
@@ -72,6 +72,12 @@ function load_scripts(scripts) { |
} |
+function log_error(text) { |
+ self.postMessage({"call": "error", "args": text}); |
+ self.postMessage({"call": "reset"}); |
+} |
+ |
+ |
function run(args) { |
var file = args["file"]; |
var resx = args["resx"]; |
@@ -121,7 +127,7 @@ function run(args) { |
var input_file_name = "input_temp"; |
var output_file_name = "output.svg"; |
- var psc = new PlotScriptComposer(resx, resy); |
+ var psc = new PlotScriptComposer(resx, resy, log_error); |
var objects = 0; |
time("Collecting events (" + content_lines.length + " entries)", |