Skip to content

Commit 780c38f

Browse files
committed
Use pseudo-var __STACKTRACE__ instead System module
Using `System.get_stacktrace()` may cause the emulator to hold on to the stack trace for a very long time More details in: elixir-lang/elixir#7097
1 parent 01d4064 commit 780c38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/engine_credo/cli.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule EngineCredo.CLI do
1717
rescue
1818
error ->
1919
# credo:disable-for-next-line Credo.Check.Warning.IoInspect
20-
IO.puts(:stderr, Exception.format(:error, error, System.stacktrace()))
20+
IO.puts(:stderr, Exception.format(:error, error, __STACKTRACE__))
2121
System.halt(1)
2222
end
2323
end

0 commit comments

Comments
 (0)