summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-12-17 11:24:58 +0000
committerSimon MacMullen <simon@rabbitmq.com>2010-12-17 11:24:58 +0000
commit0c0af02a1cc93542d46ab705dc348fd3ef9d5755 (patch)
treede11006dec9f9536fb8d5bbd2b29d999ba5c359f /src
parente3506df92fbe007eaa933e34c5b11b1222976e50 (diff)
downloadrabbitmq-server-git-0c0af02a1cc93542d46ab705dc348fd3ef9d5755.tar.gz
Clearer error message.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 4f8a7f7825..4a4636ea67 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -406,8 +406,8 @@ check_user_id_header(#'P_basic'{user_id = User}, #ch{username = User}) ->
ok;
check_user_id_header(#'P_basic'{user_id = Claimed}, #ch{username = Actual}) ->
rabbit_misc:protocol_error(
- precondition_failed, "claimed to be '~s' but was '~s'",
- [Claimed, Actual]).
+ precondition_failed, "user_id property set to '~s' but "
+ "authenticated user was '~s'", [Claimed, Actual]).
expand_queue_name_shortcut(<<>>, #ch{most_recently_declared_queue = <<>>}) ->
rabbit_misc:protocol_error(