summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-12-20 13:00:52 +0000
committerSimon MacMullen <simon@rabbitmq.com>2010-12-20 13:00:52 +0000
commit81a89ba1bf054837ea3a9a27a99fedce58a2ffbc (patch)
treed77193c0f27ca3ef7599924f6938ae979456350e
parent9de52f1ad0cbd70b8fdacbfdd825fee499d52730 (diff)
downloadrabbitmq-server-bug23358.tar.gz
rabbit_misc:rs/1bug23358
-rw-r--r--src/rabbit_channel.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 543d5c6d..edafd52d 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -400,13 +400,10 @@ check_write_permitted(Resource, #ch{username = Username}) ->
check_read_permitted(Resource, #ch{username = Username}) ->
check_resource_access(Username, Resource, read).
-check_internal_exchange(#exchange{name = #resource{name = Name,
- virtual_host = VHost},
- internal = true}) ->
+check_internal_exchange(#exchange{name = Name, internal = true}) ->
rabbit_misc:protocol_error(access_refused,
- "cannot publish to internal exchange '~s' in "
- "virtual host '~s'",
- [Name, VHost]);
+ "cannot publish to internal ~s",
+ [rabbit_misc:rs(Name)]);
check_internal_exchange(_) ->
ok.