summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_direct.erl4
-rw-r--r--src/rabbit_reader.erl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index 68aa578c95..8a76c8074c 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -222,8 +222,8 @@ start_channel(Number, ClientChannelPid, ConnPid, ConnName, Protocol,
{true, Limit} ->
rabbit_log_connection:error(
"Error on direct connection ~p~n"
- "number of channels opened for user (~s) has reached the "
- "maximum allowed limit of (~p)",
+ "number of channels opened for user '~s' has reached the "
+ "maximum allowed limit of (~w)",
[ConnPid, Username, Limit]),
{error, not_allowed}
end.
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 61a26beb21..f9697c96e5 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -926,7 +926,7 @@ create_channel(Channel,
{ok, {ChPid, AState}, State#v1{channel_count = ChannelCount + 1}};
{true, Limit} ->
{error, rabbit_misc:amqp_error(not_allowed,
- "number of channels opened for user (~s) has reached "
+ "number of channels opened for user '~s' has reached "
"the maximum allowed user limit of (~w)",
[Username, Limit], 'none')}
end.