change returned config from record to list in error and incomplete handler
This commit is contained in:
parent
2d7b690a91
commit
df04f091f7
4 changed files with 68 additions and 7 deletions
|
@ -45,7 +45,7 @@ encoder(Handler, State, Config) ->
|
|||
-define(error(State, Term, Handler, Config),
|
||||
case Config#config.error_handler of
|
||||
false -> erlang:error(badarg);
|
||||
F -> erlang:throw(F(Term, {encoder, State, Handler}, Config))
|
||||
F -> erlang:throw(F(Term, {encoder, State, Handler}, jsx_utils:config_to_list(Config)))
|
||||
end
|
||||
).
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue