summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-12-10 11:22:14 +0000
committerMatthias Radestock <matthias@lshift.net>2008-12-10 11:22:14 +0000
commit07ccc810d5a92db7ccf059a41d38596d036b3698 (patch)
treec3ce760b10f30163c7136530a7b37c1e6935af7e
parentde68e6a77e5e0c52c9a028f93db0087cc77ab769 (diff)
downloadrabbitmq-server-07ccc810d5a92db7ccf059a41d38596d036b3698.tar.gz
correct error handling
-rw-r--r--src/rabbit_control.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index 4527b668..bc338798 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -298,7 +298,10 @@ display_info_list(Results, InfoItemArgs) when is_list(Results) ->
io:nl()
end,
Results),
- ok.
+ ok;
+
+display_info_list(Other, _) ->
+ Other.
display_list(L) when is_list(L) ->
lists:foreach(fun (I) ->