summaryrefslogtreecommitdiff
path: root/tools/declare_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/declare_queue.c')
-rw-r--r--tools/declare_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/declare_queue.c b/tools/declare_queue.c
index 9fb917f..662531f 100644
--- a/tools/declare_queue.c
+++ b/tools/declare_queue.c
@@ -91,6 +91,9 @@ int main(int argc, const char **argv)
0,
0,
AMQP_EMPTY_TABLE);
+ if (reply == NULL) {
+ die_rpc(amqp_get_rpc_reply(conn), "queue.declare");
+ }
write(1, reply->queue.bytes, reply->queue.len);
write(1, "\n", strlen("\n"));
}