summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-06-01 22:32:14 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2013-06-01 22:32:14 +0100
commit85f7e06bcbcef8c4e374aad032ce3c89a7f42f17 (patch)
tree141d31889da9340af9b6673ebb8beb82c52e0373 /src
parent809e2445dfd1f61e7922c168db1af49dbeb5f873 (diff)
downloadrabbitmq-server-git-85f7e06bcbcef8c4e374aad032ce3c89a7f42f17.tar.gz
cosmetic(ish): tighter signature for rabbit_direct:connect
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_direct.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index c18b50235d..769c86c3af 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -35,8 +35,10 @@
{rabbit_types:username(), rabbit_types:password()}),
rabbit_types:vhost(), rabbit_types:protocol(), pid(),
rabbit_event:event_props()) ->
- {'ok', {rabbit_types:user(),
- rabbit_framing:amqp_table()}}).
+ rabbit_types:ok_or_error2(
+ {rabbit_types:user(), rabbit_framing:amqp_table()},
+ 'broker_not_found_on_node' | 'auth_failure' |
+ 'access_refused')).
-spec(start_channel/9 ::
(rabbit_channel:channel_number(), pid(), pid(), string(),
rabbit_types:protocol(), rabbit_types:user(), rabbit_types:vhost(),