Skip to content

Commit

Permalink
fix: fix typos and correct field names
Browse files Browse the repository at this point in the history
  • Loading branch information
lafirest committed May 22, 2024
1 parent 1a4981d commit 58fc73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hocon_tconf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ check_map_key_name2(Validator, [Name | T]) ->
{error, _Meta} = Error ->
Error
catch
_:Reason ->
{error, #{name => Name, message => Reason}}
throw:Reason ->
{error, #{name => Name, cause => Reason}}
end;
check_map_key_name2(_Validator, []) ->
ok.
Expand Down
1 change: 1 addition & 0 deletions test/hocon_tconf_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2505,6 +2505,7 @@ map_atom_keys_test_() ->
?assertThrow(
{_, [
#{
kind := validation_error,
got := BadKeyStr,
reason := invalid_map_key
}
Expand Down

0 comments on commit 58fc73c

Please sign in to comment.