Skip to content

Commit

Permalink
chore: add extra log to No broker set to broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Oct 19, 2024
1 parent 085fa5e commit 1421f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-services/src/lib/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Api implements IApiService {

async broadcast<T extends keyof EventSignatures>(event: T, ...args: Parameters<EventSignatures[T]>): Promise<void> {
if (!this.broker) {
throw new Error(`No broker set to broadcast: ${event}`);
throw new Error(`No broker set to broadcast: ${event}, ${JSON.stringify(args)}`);
}

return this.broker.broadcast(event, ...args);
Expand Down

0 comments on commit 1421f25

Please sign in to comment.