Skip to content

Commit e9c3652

Browse files
author
Simon MacMullen
committed
amqp_error is a record. Duh.
1 parent e93b8f2 commit e9c3652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_channel.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
930930
rabbit_misc:rs(QueueName)]);
931931
%% When check_exclusive_access exits with a protocol error this gets
932932
%% wrapped by mnesia. Unwrap it and exit again.
933-
{error, {amqp_error, _, _, _} = Error} ->
933+
{error, #amqp_error{} = Error} ->
934934
exit(Error);
935935
ok -> return_ok(State, NoWait, ReturnMethod)
936936
end.

0 commit comments

Comments
 (0)