summaryrefslogtreecommitdiff
path: root/tools/delete_queue.c
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonygarnockjones@gmail.com>2010-06-06 11:08:18 +1200
committerTony Garnock-Jones <tonygarnockjones@gmail.com>2010-06-06 11:08:18 +1200
commit3e5df50a72ecce3b232a412d5bdc1f33ed3390ce (patch)
treec9abbd2c69cfe3b48d9c15e864e490a5431f67a7 /tools/delete_queue.c
parentedb0bb6cc82ecaf5474dcf80b55fc239d83bf1e8 (diff)
downloadrabbitmq-c-github-ask-3e5df50a72ecce3b232a412d5bdc1f33ed3390ce.tar.gz
Notice errors rather than sigsegv/sigbus
Diffstat (limited to 'tools/delete_queue.c')
-rw-r--r--tools/delete_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/delete_queue.c b/tools/delete_queue.c
index 4397545..41d0d13 100644
--- a/tools/delete_queue.c
+++ b/tools/delete_queue.c
@@ -91,6 +91,9 @@ int main(int argc, const char **argv)
cstring_bytes(queue),
if_unused,
if_empty);
+ if (reply == NULL) {
+ die_rpc(amqp_get_rpc_reply(conn), "queue.delete");
+ }
printf("%u\n", reply->message_count);
}
close_connection(conn);