Skip to content

Commit f83fd77

Browse files
author
Vlad Ionescu
committed
renaming expl to explanation in #amqp_error{}
1 parent 11a829e commit f83fd77

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/rabbit.hrl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
-record(ssl_socket, {tcp, ssl}).
6868
-record(delivery, {mandatory, immediate, txn, sender, message}).
6969

70-
-record(amqp_error, {name, expl, method = none}).
70+
-record(amqp_error, {name, explanation, method = none}).
7171

7272
%%----------------------------------------------------------------------------
7373

@@ -157,9 +157,9 @@
157157
-type(not_found() :: {'error', 'not_found'}).
158158
-type(routing_result() :: 'routed' | 'unroutable' | 'not_delivered').
159159
-type(amqp_error() ::
160-
#amqp_error{name :: atom(),
161-
expl :: string(),
162-
method :: atom()}).
160+
#amqp_error{name :: atom(),
161+
explanation :: string(),
162+
method :: atom()}).
163163
-endif.
164164

165165
%%----------------------------------------------------------------------------

src/rabbit_misc.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ frame_error(MethodName, BinaryFields) ->
148148

149149
amqp_error(Name, ExplanationFormat, Params, Method) ->
150150
Explanation = lists:flatten(io_lib:format(ExplanationFormat, Params)),
151-
#amqp_error{name = Name, expl = Explanation, method = Method}.
151+
#amqp_error{name = Name, explanation = Explanation, method = Method}.
152152

153153
protocol_error(Name, ExplanationFormat, Params) ->
154154
protocol_error(Name, ExplanationFormat, Params, none).

src/rabbit_reader.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ map_exception(Channel, Reason) ->
792792
{ShouldClose, CloseChannel, CloseMethod}.
793793

794794
lookup_amqp_exception(
795-
#amqp_error{name = Name, expl = Expl, method = Method}) ->
795+
#amqp_error{name = Name, explanation = Expl, method = Method}) ->
796796
{ShouldClose, Code, Text} = rabbit_framing:lookup_amqp_exception(Name),
797797
ExplBin = list_to_binary(Expl),
798798
CompleteTextBin = <<Text/binary, " - ", ExplBin/binary>>,

0 commit comments

Comments
 (0)