diff --git a/lib/executor.js b/lib/executor.js index 1cf1d959..26d6cfe7 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -65,11 +65,15 @@ function start(type, data, startedCallback, finishedCallback, failedCallback) { failedCallback }; - executorProcess.send({ - type: 'start-' + type, - data, - tid: messageTid - }); + try { + executorProcess.send({ + type: 'start-' + type, + data, + tid: messageTid + }); + } catch (error) { + failedCallback('Executor process: ' + error.message); + } messageTid++; }