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:
parent
ed5409fb6a
commit
6777f04780
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue