Skip to content

Commit 243de7d

Browse files
committed
Fix error grouping issue
The errors are being grouped in a wrong way because a type mismatch comparison was done between the application name and the stacktrace application name. The fix is to convert the configured application name to a string and be able to compare it with the stacktrace application name.
1 parent 4763e55 commit 243de7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_tracker/schemas/stacktrace.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule ErrorTracker.Stacktrace do
5555
application, just the first line.
5656
"""
5757
def source(stack = %__MODULE__{}) do
58-
client_app = Application.fetch_env!(:error_tracker, :otp_app)
58+
client_app = Application.fetch_env!(:error_tracker, :otp_app) |> to_string()
5959

6060
Enum.find(stack.lines, &(&1.application == client_app)) || List.first(stack.lines)
6161
end

0 commit comments

Comments
 (0)