X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FerrorWorker.js;h=841af907f1b2f6c290282c91adfc6afec5ae4ed4;hb=15d563152134452a245e4842b20fbf4030457e16;hp=cc13c050ca8cd07d485a06e1faa1ba2239c1540f;hpb=0a01b5c3aa58059e7241d4394cf3953779029507;p=poolifier.git diff --git a/tests/worker-files/thread/errorWorker.js b/tests/worker-files/thread/errorWorker.js index cc13c050..841af907 100644 --- a/tests/worker-files/thread/errorWorker.js +++ b/tests/worker-files/thread/errorWorker.js @@ -2,7 +2,7 @@ const { ThreadWorker, KillBehaviors } = require('../../../lib/index') function error (data) { - throw new Error(data) + throw new Error('Error Message from ThreadWorker') } module.exports = new ThreadWorker(error, {