I think what you want to do is to catch the errors in the AMQP connection
.
As you mentioned, node-amqp
captures errors in a different context, but you can listen to then on the connection:
yourConnectionVar.on( 'error', function(err) {
//do something
console.log('An error occurred' + err);
});
I hope this helps.
Cheers!