summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_health_check.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rabbit_health_check.erl b/src/rabbit_health_check.erl
index 7a127f9bf6..aa739be33f 100644
--- a/src/rabbit_health_check.erl
+++ b/src/rabbit_health_check.erl
@@ -62,8 +62,11 @@ node_health_check(list_queues) ->
node_health_check(rabbit_node_monitor) ->
case rabbit_node_monitor:partitions() of
- L when is_list(L) ->
- ok
+ [] ->
+ ok;
+ L when is_list(L), length(L) > 0 ->
+ ErrorMsg = io_lib:format("cluster partition in effect: ~p", [L]),
+ {error_string, ErrorMsg}
end;
node_health_check(alarms) ->