fix: iolist_to_binrary -> unicode:characters_to_binary

It is not always safe to use iolist_to_binrary on the output of an
io_lib:format call with the ~ts placeholder.
This commit is contained in:
Kjell Winblad 2024-04-12 15:21:25 +02:00
parent ed5409fb6a
commit 6777f04780
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ rendered_action_template(ActionID, RenderResult) ->
[ActionID]
)
),
MsgBin = iolist_to_binary(StopMsg),
MsgBin = unicode:characters_to_binary(StopMsg),
error({unrecoverable_error, MsgBin});
_ ->
ok