summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index a41b6ffb..d30b0367 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -930,7 +930,7 @@ binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
rabbit_misc:rs(QueueName)]);
%% When check_exclusive_access exits with a protocol error this gets
%% wrapped by mnesia. Unwrap it and exit again.
- {error, {amqp_error, _, _, _} = Error} ->
+ {error, #amqp_error{} = Error} ->
exit(Error);
ok -> return_ok(State, NoWait, ReturnMethod)
end.