mirror of
https://github.com/ash-project/splode.git
synced 2024-09-21 05:43:35 +12:00
improvement: Don't show Process.info
in stacktraces.
This commit is contained in:
parent
8fca091723
commit
5358d5ae4c
1 changed files with 6 additions and 2 deletions
|
@ -68,7 +68,9 @@ defmodule Splode.Error do
|
|||
if is_nil(opts[:stacktrace]) do
|
||||
{:current_stacktrace, stacktrace} = Process.info(self(), :current_stacktrace)
|
||||
|
||||
Keyword.put(opts, :stacktrace, %Splode.Stacktrace{stacktrace: stacktrace})
|
||||
Keyword.put(opts, :stacktrace, %Splode.Stacktrace{
|
||||
stacktrace: Enum.drop(stacktrace, 1)
|
||||
})
|
||||
else
|
||||
opts
|
||||
end
|
||||
|
@ -80,7 +82,9 @@ defmodule Splode.Error do
|
|||
if is_nil(opts[:stacktrace]) do
|
||||
{:current_stacktrace, stacktrace} = Process.info(self(), :current_stacktrace)
|
||||
|
||||
Keyword.put(opts, :stacktrace, %Splode.Stacktrace{stacktrace: stacktrace})
|
||||
Keyword.put(opts, :stacktrace, %Splode.Stacktrace{
|
||||
stacktrace: Enum.drop(stacktrace, 1)
|
||||
})
|
||||
else
|
||||
opts
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue