diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-06-22 18:17:49 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-06-22 18:17:49 +0100 |
commit | 64b88a0baaea86218b9742acc2510868e89ce9d0 (patch) | |
tree | ad00ff893b14dad06ceb985f5cfe01c8cb8f489f | |
parent | 006228aa8a47abfbdc6bdb7c247c593df763e94e (diff) | |
download | rabbitmq-server-64b88a0baaea86218b9742acc2510868e89ce9d0.tar.gz |
Make error messages terser.
-rw-r--r-- | src/rabbit_reader.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index ba412562..8b7cba48 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -623,13 +623,13 @@ handle_method0(#'connection.tune_ok'{channel_max = _ChannelMax, if (FrameMax =< ?FRAME_MIN_SIZE) or (?FRAME_MAX /= 0) and (FrameMax > ?FRAME_MAX) -> rabbit_misc:protocol_error( - not_allowed, "peer sent tune_ok with invalid frame_max", []); + not_allowed, "invalid frame_max", []); %% If we have a channel_max limit that the client wishes to %% exceed, die as per spec. Not currently a problem, so we ignore %% the client's channel_max parameter. %%(?CHANNEL_MAX /= 0) and (ChannelMax > ?CHANNEL_MAX) -> %% rabbit_misc:protocol_error( - %% not_allowed, "peer sent tune_ok with invalid channel_max"); + %% not_allowed, "invalid channel_max"); true -> rabbit_heartbeat:start_heartbeat(Sock, ClientHeartbeat), State#v1{connection_state = opening, |