diff --git a/packages/core/lib/queues/AbstractPublisherManager.ts b/packages/core/lib/queues/AbstractPublisherManager.ts index b625ec9f..87699b7d 100644 --- a/packages/core/lib/queues/AbstractPublisherManager.ts +++ b/packages/core/lib/queues/AbstractPublisherManager.ts @@ -180,7 +180,9 @@ export abstract class AbstractPublisherManager< ): Promise> { const publisher = this.targetToPublisherMap[eventTarget] if (!publisher) { - throw new Error(`No publisher for target ${eventTarget}`) + throw new Error( + `No publisher for target ${eventTarget} - did you perhaps forget to update supportedEvents passed to EventRegistry?`, + ) } const messageDefinition = this.resolveMessageDefinition(eventTarget, message) if (!messageDefinition) { @@ -254,7 +256,9 @@ export abstract class AbstractPublisherManager< const publisher = this.targetToPublisherMap[eventTarget] if (!publisher) { - throw new Error(`No publisher for target ${eventTarget}`) + throw new Error( + `No publisher for target ${eventTarget} - did you perhaps forget to update supportedEvents passed to EventRegistry?`, + ) } return publisher.handlerSpy