aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-27 16:55:11 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-27 16:55:11 -0800
commite932e70792a50786dedc0461697ed31c7ffa4bb2 (patch)
treeba6cc026ba2301207c68b5f8b57192b8620ed9b4
parent31db18e77356c79b63be2a3d338d2181fafdbbba (diff)
clearer stacks from framework errors
-rw-r--r--src/framework.js20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/framework.js b/src/framework.js
index f5eb099d..9e0d163d 100644
--- a/src/framework.js
+++ b/src/framework.js
@@ -98,19 +98,13 @@ Substrate.prototype = {
var inputs = actor.items.slice(0);
var outputs;
var currResultCount = that.results.length;
- try {
- dprint('framework', 'Processing using ' + actor.name_ + ': ' + inputs.length);
- actor.items = []; // More may be added in process(); we'll get to them next time
- //var t = Date.now();
- outputs = actor.process(inputs);
- //t = (Date.now()-t)/1000;
- //dprint('framework', 'Took ' + t + ' seconds.');
- dprint('framework', 'New results: ' + (outputs.length + that.results.length - currResultCount) + ' out of ' + (that.results.length + outputs.length));
- } catch (e) {
- //print("Exception, current selected are: " + inputs.map(dump).join('\n\n'));
- print("Stack: " + new Error().stack);
- throw e;
- }
+ dprint('framework', 'Processing using ' + actor.name_ + ': ' + inputs.length);
+ actor.items = []; // More may be added in process(); we'll get to them next time
+ //var t = Date.now();
+ outputs = actor.process(inputs);
+ //t = (Date.now()-t)/1000;
+ //dprint('framework', 'Took ' + t + ' seconds.');
+ dprint('framework', 'New results: ' + (outputs.length + that.results.length - currResultCount) + ' out of ' + (that.results.length + outputs.length));
hadProcessing = true;
if (outputs) {