Skip to content

Commit e4707bb

Browse files
author
Tom Kirkpatrick
committed
fix: properly log connection errors
1 parent 737b6f5 commit e4707bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = function loopbackComponentMq(app, settings) {
5656
rabbit.configure(settings.topology)
5757
.then(() => debug('Rabbit topology configured'))
5858
.catch(err => {
59-
RabbitMQ.log.error('Unable to configure Rabbit topology', err.cause)
59+
RabbitMQ.log.error('Unable to configure Rabbit topology', err)
6060
process.exit(1)
6161
})
6262

0 commit comments

Comments
 (0)