From cc7e1578856b1bc6bbb10e67242bfefa473a8ed7 Mon Sep 17 00:00:00 2001 From: Egor Ignatov Date: Wed, 26 Jan 2022 11:20:40 +0300 Subject: tools: print verbose error message when failed to open a socket --- tools/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.1