Skip to content

Commit e1f2865

Browse files
committed
Return the exception
1 parent 9ba545c commit e1f2865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ join(RemoteNode, NodeType)
231231
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
232232
join(RemoteNode, NodeType)
233233
catch
234+
Exception ->
234235
%% Should we handle the catched error - my reasoning for
235236
%% ignoring it is that the error we want to show is the
236237
%% issue of joinging the cluster, not the potential error
237238
%% of leaving the cluster.
238-
_ ->
239239
rabbit_log:error(Msg),
240-
Error
240+
Exception
241241
end
242242
end
243243
end.

0 commit comments

Comments
 (0)