diff --git a/rebar.config b/rebar.config index 1ee3947..cbb8b16 100644 --- a/rebar.config +++ b/rebar.config @@ -2,6 +2,9 @@ {plugins, [rebar3_hex]}. {deps, [{enacl, {git, "https://git.qpq.swiss/QPQ-AG/enacl.git", {ref, "4eb7ec70"}}}]}. +{profiles, [{test, [{deps, [{jsx, {git, "https://github.com/talentdeficit/jsx.git", {tag, "2.8.0"}}}]}]} + ]}. + {xref_checks, [undefined_function_calls, undefined_functions, locals_not_used, deprecated_function_calls, deprecated_functions]}. diff --git a/test/enoise_utils.erl b/test/enoise_utils.erl index fe5377b..0d3b75c 100644 --- a/test/enoise_utils.erl +++ b/test/enoise_utils.erl @@ -26,7 +26,7 @@ echo_srv(Port, Protocol, SKP, SrvOpts) -> AcceptRes = try enoise:accept(TcpSock, Opts) - catch _:R -> gen_tcp:close(TcpSock), {error, {R, erlang:get_stacktrace()}} end, + catch _:R:T -> gen_tcp:close(TcpSock), {error, {R, T}} end, gen_tcp:close(LSock),