summaryrefslogtreecommitdiff
path: root/src/rabbit_channel.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 1af07793..d21e0c4a 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -750,7 +750,7 @@ handle_method(#'queue.declare'{queue = QueueNameBin,
%% non-equivalence trumps exclusivity arbitrarily
(#amqqueue{name = QueueName}) ->
rabbit_misc:protocol_error(
- channel_error,
+ precondition_failed,
"parameters for ~s not equivalent",
[rabbit_misc:rs(QueueName)])
end,