diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rabbit_channel.erl | 2 | ||||
-rw-r--r-- | src/rabbit_exchange.erl | 4 |
2 files changed, 3 insertions, 3 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, diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl index d5d69ca4..c5149b08 100644 --- a/src/rabbit_exchange.erl +++ b/src/rabbit_exchange.erl @@ -198,7 +198,7 @@ assert_equivalence(X = #exchange{ durable = Durable, assert_equivalence(#exchange{ name = Name }, _Type, _Durable, _AutoDelete, _Args) -> rabbit_misc:protocol_error( - not_allowed, + precondition_failed, "cannot redeclare ~s with different type, durable or autodelete value", [rabbit_misc:rs(Name)]). @@ -215,7 +215,7 @@ assert_args_equivalence(#exchange{ name = Name, Ae2 = alternate_exchange_value(Args), if Ae1==Ae2 -> ok; true -> rabbit_misc:protocol_error( - not_allowed, + precondition_failed, "cannot redeclare ~s with inequivalent args", [rabbit_misc:rs(Name)]) end. |