From 87127ab25f7800816e4029b16aa805c2e2621010 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 2 Dec 2020 01:18:48 +0300 Subject: [PATCH] minor tweaking... Signed-off-by: Alex A. Naanou --- runner.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runner.js b/runner.js index f31fdae..76a97ce 100644 --- a/runner.js +++ b/runner.js @@ -69,6 +69,8 @@ object.Constructor('Queue', Array, { auto_stop: false, + catch_errors: true, + // NOTE: if true this is sync only untill the pool is filled or task // list is depleted... sync_start: false, @@ -252,8 +254,9 @@ object.Constructor('Queue', Array, { // promise result... // XXX is the err test here needed??? - ;(err === undefined && res.catch) ? - res.catch(function(err){ + err === undefined + && res.catch + && res.catch(function(err){ that.trigger('taskFailed', task, err) }) // ignore errors...