cody-greene / node-rabbitmq-client

RabbitMQ (0-9-1) client library with auto-reconnect & zero dependencies
MIT License
127 stars 9 forks source link

Unable to capture connection errors #17

Closed douglampe closed 1 year ago

douglampe commented 1 year ago

Steps to reproduce:

Expected:

Observed:

cody-greene commented 1 year ago

Errors are emitted as asynchronous events. Use connection.on("error", cb)

-------- Original Message -------- On Jun 15, 2023, 3:25 PM, Doug Lampe wrote:

Steps to reproduce:

  • Create new instance of Connection with invalid configuration (ex: invalid credentials) in try/catch block

Expected:

  • Error handled in catch block

Observed:

  • Exception thrown
  • Process terminated

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

douglampe commented 1 year ago

That works. Thanks.