Skip to content

Commit 13cc309

Browse files
committed
Revert error handling removal for backwards compatibility.
Older versions still can return binding_not_found error.
1 parent 13985a7 commit 13cc309

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rabbit_channel.erl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,11 @@ binding_action(Fun, SourceNameBin0, DestinationType, DestinationNameBin0,
18451845
rabbit_amqqueue:not_found(Name);
18461846
{error, {resources_missing, [{absent, Q, Reason} | _]}} ->
18471847
rabbit_amqqueue:absent(Q, Reason);
1848+
{error, binding_not_found} ->
1849+
rabbit_misc:protocol_error(
1850+
not_found, "no binding ~s between ~s and ~s",
1851+
[RoutingKey, rabbit_misc:rs(ExchangeName),
1852+
rabbit_misc:rs(DestinationName)]);
18481853
{error, {binding_invalid, Fmt, Args}} ->
18491854
rabbit_misc:protocol_error(precondition_failed, Fmt, Args);
18501855
{error, #amqp_error{} = Error} ->

0 commit comments

Comments
 (0)