Skip to content

Commit d75eb86

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 39b5757 commit d75eb86

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
@@ -652,7 +652,7 @@ switch_callback(State, Callback, Length) ->
652652
terminate(Explanation, State) when ?IS_RUNNING(State) ->
653653
{normal, handle_exception(State, 0,
654654
rabbit_misc:amqp_error(
655-
connection_forced, Explanation, [], none))};
655+
connection_forced, "~s", [Explanation], none))};
656656
terminate(_Explanation, State) ->
657657
{force, State}.
658658

0 commit comments

Comments
 (0)