diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-05-03 07:12:11 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-05-03 07:18:04 -0400 |
commit | 5f9b4293bc029e2132d7c442cb5b4480915ea0e4 (patch) | |
tree | 8ba1730e313f0fe955c0f366ef4ee870997d9275 /src/rebar_fetch.erl | |
parent | fb87ed576203c303911193b4902e661c59188274 (diff) |
Work around OTP-21 deprecation of get_stacktrace()
Based off a macro by @okeuday at https://github.com/erlang/otp/pull/1783
Diffstat (limited to 'src/rebar_fetch.erl')
-rw-r--r-- | src/rebar_fetch.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index f68a54d..d2c7706 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -32,8 +32,8 @@ download_source(AppDir, Source, State) -> Error -> throw(?PRV_ERROR(Error)) catch - C:T -> - ?DEBUG("rebar_fetch exception ~p ~p ~p", [C, T, erlang:get_stacktrace()]), + ?WITH_STACKTRACE(C,T,S) + ?DEBUG("rebar_fetch exception ~p ~p ~p", [C, T, S]), throw(?PRV_ERROR({fetch_fail, Source})) end. |