X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fabstract-pool.ts;h=5633613ecebdda8cb763c7922588ebc504be4fc7;hb=04f4516344e1c6968de6312bcafc8f7e2b3b0eeb;hp=8332d31aefb2a9d91fac99bcea3a1d3690883be6;hpb=8ebe6c308dc1fc3202980126da043b2855d24780;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 8332d31a..5633613e 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -106,7 +106,9 @@ export abstract class AbstractPool< protected readonly opts: PoolOptions ) { if (!this.isMain()) { - throw new Error('Cannot start a pool from a worker!') + throw new Error( + 'Cannot start a pool from the same worker type as the current pool one' + ) } this.checkNumberOfWorkers(this.numberOfWorkers) this.checkFilePath(this.filePath)