Skip to content

Commit

Permalink
Fix badarg error in ct_error_printer
Browse files Browse the repository at this point in the history
Summary: * The call to io_lib:format does not have a list of term, the tuple is passed directly as the second arg causing it to crash with error

Reviewed By: jcpetruzza

Differential Revision: D64177984

fbshipit-source-id: 5fbd400c1fa37f3410a993d87ed8429ea9343526
  • Loading branch information
bgsmeta authored and facebook-github-bot committed Oct 10, 2024
1 parent 83cf96a commit bf285ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erlang/common_test/common/src/ct_error_printer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ maybe_custom_format({{Type, Props = #{formatter := Formatter}}, _StackTrace}) wh
"~s~n",
[erl_error:format_exception(E, R, ST)]
),
io_lib:format("original assertion: ~n" "~p~n", {Type, Props})
io_lib:format("original assertion: ~n" "~p~n", [{Type, Props}])
]}
end;
maybe_custom_format(_Reason) ->
Expand Down

0 comments on commit bf285ae

Please sign in to comment.