changes two rogue throw to error
This commit is contained in:
parent
6481bae328
commit
428858ed8c
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ encode(Acc, Opts) when is_list(Acc) ->
|
|||
iolist -> Acc
|
||||
; UTF when ?is_utf_encoding(UTF) ->
|
||||
unicode:characters_to_binary(Acc, utf8, UTF)
|
||||
; _ -> erlang:throw(badarg)
|
||||
; _ -> erlang:error(badarg)
|
||||
end;
|
||||
encode(string, String) ->
|
||||
[?quote, String, ?quote];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue