summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_queue_location_validator.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_queue_location_validator.erl b/src/rabbit_queue_location_validator.erl
index ad6bb292ab..2638b79a59 100644
--- a/src/rabbit_queue_location_validator.erl
+++ b/src/rabbit_queue_location_validator.erl
@@ -33,7 +33,10 @@
validate_policy(KeyList) ->
case proplists:lookup(<<"queue-master-locator">> , KeyList) of
- {_, Strategy} -> validate_strategy(Strategy);
+ {_, Strategy} -> case validate_strategy(Strategy) of
+ {error, _} = Er -> Er;
+ _ -> ok
+ end;
_ -> {error, "queue-master-locator undefined"}
end.