diff options
author | Alvaro Videla <alvaro@rabbitmq.com> | 2014-04-29 16:38:25 +0200 |
---|---|---|
committer | Alvaro Videla <alvaro@rabbitmq.com> | 2014-04-29 16:38:25 +0200 |
commit | 0037c0eebee5b8fe1090041d6c33f752bd25ac7b (patch) | |
tree | 15a822dc1ea309a69a05a59dc2eb0c78a7aa53bd | |
parent | 6444cdd4edad85721bd2f1f80e5fbfb2b2e8146e (diff) | |
download | rabbitmq-server-bug26120.tar.gz |
internal_error -> precondition_failedbug26120
-rw-r--r-- | src/rabbit_channel_interceptor.erl | 10 |
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). |