chore: format error message
This commit is contained in:
parent
6ff4c560e4
commit
944137ad45
|
@ -169,7 +169,7 @@ state_to_invitation_view(State) ->
|
||||||
true ->
|
true ->
|
||||||
{[Ret | SuccAcc], FailedAcc};
|
{[Ret | SuccAcc], FailedAcc};
|
||||||
false ->
|
false ->
|
||||||
{SuccAcc, [Ret#{reason => Result} | FailedAcc]}
|
{SuccAcc, [Ret#{reason => format_error_reason(Result)} | FailedAcc]}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
{[], []},
|
{[], []},
|
||||||
|
@ -194,3 +194,6 @@ is_succeed_result(Result) ->
|
||||||
_ ->
|
_ ->
|
||||||
false
|
false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
format_error_reason(Term) ->
|
||||||
|
iolist_to_binary(io_lib:format("~p", [Msg])).
|
||||||
|
|
Loading…
Reference in New Issue