summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/delegate.erl2
-rw-r--r--src/rabbit_misc.erl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/delegate.erl b/src/delegate.erl
index 3814edcf8e..10054e57b6 100644
--- a/src/delegate.erl
+++ b/src/delegate.erl
@@ -87,7 +87,7 @@ invoke(Pids, Fun) when is_list(Pids) ->
{invoke, Fun, Grouped},
infinity)
end,
- BadPids = [{Pid, {exit, badnode, []}} ||
+ BadPids = [{Pid, {exit, {nodedown, BadNode}, []}} ||
BadNode <- BadNodes,
Pid <- orddict:fetch(BadNode, Grouped)],
ResultsNoNode = lists:append([safe_invoke(LocalPids, Fun) |
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 52d76ac48b..b99cb05199 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -344,8 +344,8 @@ throw_on_error(E, Thunk) ->
with_exit_handler(Handler, Thunk) ->
try
Thunk()
- catch
- exit:{R, _} when R =:= noproc; R =:= normal; R =:= shutdown ->
+ catch exit:{R, _} when R =:= noproc; R =:= nodedown;
+ R =:= normal; R =:= shutdown ->
Handler()
end.