Skip to content

Commit 58e548e

Browse files
roggervalfCopilot
authored andcommitted
docs: better comment
Co-authored-by: Copilot <[email protected]>
1 parent 763791f commit 58e548e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ will never work with more accuracy than 1ms. */
13311331
opts.span?.recordException((<Error>err).message);
13321332

13331333
if (isNotConnectionError(<Error>err)) {
1334-
// Swallow error if locally not paused or not closing since we did not force a disconnection
1334+
// Emit error when not paused or closing; optionally swallow (no throw) when opts.onlyEmitError is set.
13351335
if (!(this.paused || this.closing)) {
13361336
this.emit('error', <Error>err);
13371337
}

0 commit comments

Comments
 (0)