diff options
| author | Ayanda-D <ayanda.dube@erlang-solutions.com> | 2020-06-10 17:07:00 +0100 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2020-09-02 04:28:58 +0300 |
| commit | 2da062f5f259bc3aa2ebcb398513a422244fed17 (patch) | |
| tree | af25807fe70cd14e04c21612bc2bbbd8bf5dd7e6 | |
| parent | 50d579256cb0cf8df6f8352915ce2e81b3d20935 (diff) | |
| download | rabbitmq-server-git-2da062f5f259bc3aa2ebcb398513a422244fed17.tar.gz | |
Update formatting and cosmetics for user-limit error messages
| -rw-r--r-- | src/rabbit_reader.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index fbb38e92f5..61a26beb21 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -924,10 +924,11 @@ create_channel(Channel, put({ch_pid, ChPid}, {Channel, MRef}), put({channel, Channel}, {ChPid, AState}), {ok, {ChPid, AState}, State#v1{channel_count = ChannelCount + 1}}; - {true, Limit} -> {error, rabbit_misc:amqp_error(not_allowed, - "number of channels opened for user (~w) has reached " - "the maximum allowed limit of (~w)", - [Username, Limit], 'none')} + {true, Limit} -> + {error, rabbit_misc:amqp_error(not_allowed, + "number of channels opened for user (~s) has reached " + "the maximum allowed user limit of (~w)", + [Username, Limit], 'none')} end. channel_cleanup(ChPid, State = #v1{channel_count = ChannelCount}) -> @@ -1344,7 +1345,7 @@ is_over_user_connection_limit(#user{username = Username}) -> false -> ok; {true, Limit} -> rabbit_misc:protocol_error(not_allowed, "Connection refused for user '~s': " - "User connection limit (~p) is reached", + "user connection limit (~p) is reached", [Username, Limit]) end. |
