diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2010-06-14 15:36:28 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2010-06-14 15:36:28 +0100 |
| commit | 79f8803b480cab6974c6f212e3644a8f0893596b (patch) | |
| tree | ab8b6a8047e033522aaacdd76a135285967e8609 | |
| parent | 11150fac886584c2c6ac8fc45c088c5a1ffdfcca (diff) | |
| parent | c428a0b691c5baa76d7862921f9e7119741a1842 (diff) | |
| download | rabbitmq-server-git-79f8803b480cab6974c6f212e3644a8f0893596b.tar.gz | |
Merged bug 21842.
| -rw-r--r-- | src/rabbit_channel.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index f4434ade9c..1ab34f8653 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -344,7 +344,7 @@ with_exclusive_access_or_die(QName, ReaderPid, F) -> expand_queue_name_shortcut(<<>>, #ch{ most_recently_declared_queue = <<>> }) -> rabbit_misc:protocol_error( - not_allowed, "no previously declared queue", []); + not_found, "no previously declared queue", []); expand_queue_name_shortcut(<<>>, #ch{ virtual_host = VHostPath, most_recently_declared_queue = MRDQ }) -> rabbit_misc:r(VHostPath, queue, MRDQ); @@ -354,7 +354,7 @@ expand_queue_name_shortcut(QueueNameBin, #ch{ virtual_host = VHostPath }) -> expand_routing_key_shortcut(<<>>, <<>>, #ch{ most_recently_declared_queue = <<>> }) -> rabbit_misc:protocol_error( - not_allowed, "no previously declared queue", []); + not_found, "no previously declared queue", []); expand_routing_key_shortcut(<<>>, <<>>, #ch{ most_recently_declared_queue = MRDQ }) -> MRDQ; |
