summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-19 11:21:13 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-19 11:21:13 +0000
commit75ef03ce796db10661f4c3634e34d7cf971413f3 (patch)
tree33e1447432474f0047195dddbb549e20920625be
parentf2698c6b73b0d52b213fafb0d820151e87cf2aba (diff)
downloadrabbitmq-server-bug25722.tar.gz
Better error catching.bug25722
-rw-r--r--src/rabbit_mnesia.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index df499351..f9961f3f 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -602,7 +602,7 @@ discover_cluster(Nodes) ->
(Node, _) -> discover_cluster0(Node)
end, {error, no_nodes_provided}, Nodes) of
{ok, Res} -> Res;
- {error, E} -> throw(E);
+ {error, E} -> throw({error, E});
{badrpc, Reason} -> throw({badrpc_multi, Reason, Nodes})
end.