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.
1 parent f035490 commit 258f87bCopy full SHA for 258f87b
deps/rabbit/src/rabbit_exchange.erl
@@ -136,11 +136,11 @@ check_type(TypeBin) ->
136
case rabbit_registry:binary_to_type(rabbit_data_coercion:to_binary(TypeBin)) of
137
{error, not_found} ->
138
rabbit_misc:protocol_error(
139
- command_invalid, "unknown exchange type '~ts'", [TypeBin]);
+ precondition_failed, "unknown exchange type '~ts'", [TypeBin]);
140
T ->
141
case rabbit_registry:lookup_module(exchange, T) of
142
{error, not_found} -> rabbit_misc:protocol_error(
143
- command_invalid,
+ precondition_failed,
144
"invalid exchange type '~ts'", [T]);
145
{ok, _Module} -> T
146
end
0 commit comments