diff options
-rw-r--r-- | tools/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/common.c b/tools/common.c index 39a20a7..73b47e2 100644 --- a/tools/common.c +++ b/tools/common.c @@ -294,7 +294,7 @@ amqp_connection_state_t make_connection(void) { } status = amqp_socket_open(socket, ci.host, ci.port); if (status) { - die("opening socket to %s:%d", ci.host, ci.port); + die_amqp_error(status, "opening socket to %s:%d", ci.host, ci.port); } die_rpc(amqp_login(conn, ci.vhost, 0, 131072, amqp_heartbeat, AMQP_SASL_METHOD_PLAIN, ci.user, ci.password), |