summaryrefslogtreecommitdiff
path: root/src/rebar_prv_update.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-05-03 18:14:11 -0400
committerGitHub <noreply@github.com>2018-05-03 18:14:11 -0400
commit048dfad1e8e05aead68cdd062653d8f51d2eaf88 (patch)
tree5157ad3d51aa3765df04a226206441a07e95974f /src/rebar_prv_update.erl
parenta908284b112ff77dbf0ae9b9f946bc7b739faf29 (diff)
parente321ca64981504f10a3be1715ce5d94c3cd10ae7 (diff)
Merge pull request #1773 from ferd/otp-21-stacktrace-compat
Work around OTP-21 deprecation of get_stacktrace() and other incompatible changes
Diffstat (limited to 'src/rebar_prv_update.erl')
-rw-r--r--src/rebar_prv_update.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl
index 6dde024..1744631 100644
--- a/src/rebar_prv_update.erl
+++ b/src/rebar_prv_update.erl
@@ -73,8 +73,8 @@ do(State) ->
?PRV_ERROR({package_parse_cdn, CDN})
end
catch
- _E:C ->
- ?DEBUG("Error creating package index: ~p ~p", [C, erlang:get_stacktrace()]),
+ ?WITH_STACKTRACE(_E, C, S)
+ ?DEBUG("Error creating package index: ~p ~p", [C, S]),
throw(?PRV_ERROR(package_index_write))
end.