Skip to content

Commit

Permalink
fix: added more info to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dryymoon committed Dec 10, 2023
1 parent 29d7a06 commit fc2c9b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/rabbitmq/src/amqp/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@ export class AmqpConnection {
)
) {
throw new Error(
'Received message with mismatch defined routing key or keys'
`Received message with routing key: '${
msg.fields.routingKey
}' which can't be handled due to defined routing keys: ${JSON.stringify(
rpcOptions.routingKey
)}`
);
}

Expand Down

0 comments on commit fc2c9b8

Please sign in to comment.