Skip to content

Commit f869e21

Browse files
committed
Replacing all instances of System.stacktrace() with __STACKTRACE__ as per compiler warnings in Elixir 1.11
1 parent 67007d7 commit f869e21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/bypass/plug.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ defmodule Bypass.Plug do
2222
conn
2323
catch
2424
class, reason ->
25-
stacktrace = System.stacktrace()
26-
put_result(pid, route, ref, {:exit, {class, reason, stacktrace}})
27-
:erlang.raise(class, reason, stacktrace)
25+
put_result(pid, route, ref, {:exit, {class, reason, __STACKTRACE__}})
26+
:erlang.raise(class, reason, __STACKTRACE__)
2827
end
2928

3029
{:error, error, route} ->

0 commit comments

Comments
 (0)