Skip to content

Commit

Permalink
Merge pull request #10 from chef/lbaker/update-erlang22
Browse files Browse the repository at this point in the history
Lbaker/update erlang22
  • Loading branch information
PrajaktaPurohit authored Aug 6, 2020
2 parents 9e19ed9 + 6f1819d commit 1389b01
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{xref_checks, [undefined_function_calls]}.

{deps, [{mochiweb, "2.12.2"}]}.
{deps, [{mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", {branch, "master"}}}]}.

{eunit_opts, [
no_tty,
Expand All @@ -15,7 +15,7 @@
{profiles,
[{test,
[{deps, [meck,
{ibrowse, {git, "git://github.com/cmullaparthi/ibrowse.git", {tag, "v4.0.2"}}},
{ibrowse, {git, "git://github.com/chef/ibrowse.git", {branch, "ma/revert_ipv6"}}},
{eunit_formatters, {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
]},
{erl_opts, [debug_info]}
Expand Down
9 changes: 4 additions & 5 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{"1.1.0",
[{<<"mochiweb">>,{pkg,<<"mochiweb">>,<<"2.12.2">>},0}]}.
[
{pkg_hash,[
{<<"mochiweb">>, <<"80804AD342AFA3D7F3524040D4EED66CE74B17A555DE454AC85B07C479928E46">>}]}
].
[{<<"mochiweb">>,
{git,"git://github.com/mochi/mochiweb.git",
{ref,"070594e4d66163d662ac7e3bfb75dadcc922dd7c"}},
0}]}.
4 changes: 2 additions & 2 deletions src/webmachine_decision_core.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ handle_request(Resource, ReqState) ->
try
d(v3b13)
catch
error:_ ->
error_response(erlang:get_stacktrace())
error:_:Stacktrace ->
error_response(Stacktrace)
end.

wrcall(X) ->
Expand Down
4 changes: 2 additions & 2 deletions src/webmachine_resource.erl
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ resource_call(F, ReqData,
end,
Result = try
apply(R_Mod, F, [ReqData, R_ModState])
catch C:R ->
Reason = {C, R, trim_trace(erlang:get_stacktrace())},
catch C:R:Stacktrace ->
Reason = {C, R, trim_trace(Stacktrace)},
{{error, Reason}, ReqData, R_ModState}
end,
case R_Trace of
Expand Down
4 changes: 2 additions & 2 deletions test/decision_core_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ setup() ->
meck:new(webmachine_resource, MeckOpts),
Ctx
catch
T:E ->
io:format(user, "~n~p : ~p : ~p", [T, E, erlang:get_stacktrace()]),
T:E:Stacktrace ->
io:format(user, "~n~p : ~p : ~p", [T, E, Stacktrace]),
error(setup_failed)
end.

Expand Down

0 comments on commit 1389b01

Please sign in to comment.