summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-07-15 16:15:03 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-07-15 16:15:03 +0100
commit00567102269859a9f6e29e1c21f7c88b9c24a0b9 (patch)
tree8536948c89834e06c6b8107ceb5292cbd4cc8ebb
parent7542fdefe7a4fe64e1bc2ed0166a3f407563b808 (diff)
downloadrabbitmq-server-git-00567102269859a9f6e29e1c21f7c88b9c24a0b9.tar.gz
oops - 'hg record' diff boundary fail
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index ad39001c27..66b4e79a1e 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -405,6 +405,10 @@ handle_exception(Reason, State = #ch{protocol = Protocol,
writer_pid = WriterPid,
reader_pid = ReaderPid,
conn_pid = ConnPid}) ->
+ {CloseChannel, CloseMethod} =
+ rabbit_binary_generator:map_exception(Channel, Reason, Protocol),
+ rabbit_log:error("connection ~p, channel ~p - error:~n~p~n",
+ [ConnPid, Channel, Reason]),
%% something bad's happened: notify_queues may not be 'ok'
{_Result, State1} = notify_queues(State),
case CloseChannel of