We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc7c51a + 312b3e0 commit 4735e01Copy full SHA for 4735e01
deps/rabbit/src/rabbit_exchange.erl
@@ -142,11 +142,11 @@ check_type(TypeBin) ->
142
case rabbit_registry:binary_to_type(rabbit_data_coercion:to_binary(TypeBin)) of
143
{error, not_found} ->
144
rabbit_misc:protocol_error(
145
- command_invalid, "unknown exchange type '~ts'", [TypeBin]);
+ precondition_failed, "unknown exchange type '~ts'", [TypeBin]);
146
T ->
147
case rabbit_registry:lookup_module(exchange, T) of
148
{error, not_found} -> rabbit_misc:protocol_error(
149
- command_invalid,
+ precondition_failed,
150
"invalid exchange type '~ts'", [T]);
151
{ok, _Module} -> T
152
end
0 commit comments