diff options
| author | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2015-10-28 18:46:30 +0000 |
|---|---|---|
| committer | Diana Corbacho <diana.corbacho@erlang-solutions.com> | 2015-11-06 13:46:44 +0000 |
| commit | faa4c10ce94b641c052162f5b9cd850ca6d28a03 (patch) | |
| tree | c98ae6665b6c61b0093fbd1b2e028273affcb395 /src | |
| parent | e523f1e20cb3346d8e21292cfcac6e7aa372c507 (diff) | |
| download | rabbitmq-server-git-faa4c10ce94b641c052162f5b9cd850ca6d28a03.tar.gz | |
Updates exception to handle 'not_allowed' error.
References #237
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_direct.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl index 4940ab2b53..623d16215b 100644 --- a/src/rabbit_direct.erl +++ b/src/rabbit_direct.erl @@ -114,8 +114,8 @@ connect1(User, VHost, Protocol, Pid, Infos) -> rabbit_event:notify(connection_created, Infos), {ok, {User, rabbit_reader:server_properties(Protocol)}} catch - exit:#amqp_error{name = access_refused} -> - {error, access_refused} + exit:#amqp_error{name = Reason = not_allowed} -> + {error, Reason} end. start_channel(Number, ClientChannelPid, ConnPid, ConnName, Protocol, User, |
