Skip to content

Commit 6592ebd

Browse files
SimonUngemergify[bot]
authored andcommitted
Fix dialyzer issue.
(cherry picked from commit 9ba545c)
1 parent 6d464f9 commit 6592ebd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

+5-3
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,15 @@ join(RemoteNode, NodeType)
231231
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
232232
join(RemoteNode, NodeType)
233233
catch
234+
%% Should we handle the catched error - my reasoning for
235+
%% ignoring it is that the error we want to show is the
236+
%% issue of joinging the cluster, not the potential error
237+
%% of leaving the cluster.
234238
_ ->
235239
rabbit_log:error(Msg),
236240
Error
237241
end
238-
end;
239-
{error, _} = Error ->
240-
Error
242+
end
241243
end.
242244

243245
join_using_mnesia(ClusterNodes, NodeType) when is_list(ClusterNodes) ->

0 commit comments

Comments
 (0)