Dont handle the exception just let it out there

This commit is contained in:
Simon Unge 2025-03-31 21:16:06 +00:00
parent e1f2865eae
commit cdeabe22bc
1 changed files with 2 additions and 12 deletions

View File

@ -227,18 +227,8 @@ join(RemoteNode, NodeType)
"with node ~tp, but ~tp disagrees. ~tp will ask "
"to leave the cluster and try again.",
[RemoteNode, node(), node(), node()]),
try
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
join(RemoteNode, NodeType)
catch
Exception ->
%% Should we handle the catched error - my reasoning for
%% ignoring it is that the error we want to show is the
%% issue of joinging the cluster, not the potential error
%% of leaving the cluster.
rabbit_log:error(Msg),
Exception
end
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
join(RemoteNode, NodeType)
end
end.