diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-12-20 13:00:52 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-12-20 13:00:52 +0000 |
commit | 81a89ba1bf054837ea3a9a27a99fedce58a2ffbc (patch) | |
tree | d77193c0f27ca3ef7599924f6938ae979456350e | |
parent | 9de52f1ad0cbd70b8fdacbfdd825fee499d52730 (diff) | |
download | rabbitmq-server-bug23358.tar.gz |
rabbit_misc:rs/1bug23358
-rw-r--r-- | src/rabbit_channel.erl | 9 |
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. |