We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 763791f commit 58e548eCopy full SHA for 58e548e
src/classes/worker.ts
@@ -1331,7 +1331,7 @@ will never work with more accuracy than 1ms. */
1331
opts.span?.recordException((<Error>err).message);
1332
1333
if (isNotConnectionError(<Error>err)) {
1334
- // Swallow error if locally not paused or not closing since we did not force a disconnection
+ // Emit error when not paused or closing; optionally swallow (no throw) when opts.onlyEmitError is set.
1335
if (!(this.paused || this.closing)) {
1336
this.emit('error', <Error>err);
1337
}
0 commit comments