summaryrefslogtreecommitdiff
path: root/src/rabbit_channel_interceptor.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_channel_interceptor.erl')
-rw-r--r--src/rabbit_channel_interceptor.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_channel_interceptor.erl b/src/rabbit_channel_interceptor.erl
index d27dc8b9..db9349ac 100644
--- a/src/rabbit_channel_interceptor.erl
+++ b/src/rabbit_channel_interceptor.erl
@@ -67,13 +67,13 @@ intercept_method(M, VHost, [I]) ->
true ->
M2;
_ ->
- precondition_failed("Interceptor: ~p expected "
+ internal_error("Interceptor: ~p expected "
"to return method: ~p but returned: ~p",
[I, rabbit_misc:method_record_type(M),
rabbit_misc:method_record_type(M2)])
end;
intercept_method(M, _VHost, Is) ->
- precondition_failed("More than one interceptor for method: ~p -- ~p",
+ internal_error("More than one interceptor for method: ~p -- ~p",
[rabbit_misc:method_record_type(M), Is]).
%% select the interceptors that apply to intercept_method().
@@ -86,6 +86,6 @@ validate_method(M, M2) ->
rabbit_misc:method_record_type(M) =:= rabbit_misc:method_record_type(M2).
%% keep dialyzer happy
--spec precondition_failed(string(), [any()]) -> no_return().
-precondition_failed(Format, Args) ->
- rabbit_misc:protocol_error(precondition_failed, Format, Args).
+-spec internal_error(string(), [any()]) -> no_return().
+internal_error(Format, Args) ->
+ rabbit_misc:protocol_error(internal_error, Format, Args).