Skip to content

Commit ed70791

Browse files
Merge pull request #2155 from rabbitmq/format-reason-in-rabbit_reader
rabbit_reader: Format `Explanation` before passing it (cherry picked from commit a7cf292)
1 parent 7e9c978 commit ed70791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_reader.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ switch_callback(State, Callback, Length) ->
663663
terminate(Explanation, State) when ?IS_RUNNING(State) ->
664664
{normal, handle_exception(State, 0,
665665
rabbit_misc:amqp_error(
666-
connection_forced, Explanation, [], none))};
666+
connection_forced, "~s", [Explanation], none))};
667667
terminate(_Explanation, State) ->
668668
{force, State}.
669669

0 commit comments

Comments
 (0)