Merge pull request #1094 from poolifier/dependabot/github_actions/actions/checkout-4
[poolifier.git] / src / worker / abstract-worker.ts
index c00cf08320c261c40d857b7bcb7788a47f9561e7..ca14133f2dafa7b1d6692f84459bafabb431e935 100644 (file)
@@ -429,6 +429,7 @@ export abstract class AbstractWorker<
    * Returns the main worker.
    *
    * @returns Reference to the main worker.
+   * @throws {@link https://nodejs.org/api/errors.html#class-error} If the main worker is not set.
    */
   protected getMainWorker (): MainWorker {
     if (this.mainWorker == null) {