File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ defmodule Sentry.Event do
150150 type =
151151 if error_type == :error do
152152 normalized . __struct__
153+ |> to_string ( )
154+ |> String . trim_leading ( "Elixir." )
153155 else
154156 error_type
155157 end
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ defmodule Sentry.EventTest do
2323
2424 assert event . exception == [
2525 % {
26- type: UndefinedFunctionError ,
26+ type: " UndefinedFunctionError" ,
2727 value: "function Sentry.Event.not_a_function/3 is undefined or private" ,
2828 module: nil
2929 }
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ defmodule Sentry.LoggerBackendTest do
7373 Bypass . expect ( bypass , fn conn ->
7474 { :ok , body , conn } = Plug.Conn . read_body ( conn )
7575 json = Jason . decode! ( body )
76- assert List . first ( json [ "exception" ] ) [ "type" ] == "Elixir. ErlangError"
76+ assert List . first ( json [ "exception" ] ) [ "type" ] == "ErlangError"
7777 assert List . first ( json [ "exception" ] ) [ "value" ] == "Erlang error: :bad_exit"
7878 assert conn . request_path == "/api/1/store/"
7979 assert conn . method == "POST"
@@ -108,7 +108,7 @@ defmodule Sentry.LoggerBackendTest do
108108 "post_context" => [ ]
109109 } = List . last ( json [ "stacktrace" ] [ "frames" ] )
110110
111- assert List . first ( json [ "exception" ] ) [ "type" ] == "Elixir. FunctionClauseError"
111+ assert List . first ( json [ "exception" ] ) [ "type" ] == "FunctionClauseError"
112112 assert conn . request_path == "/api/1/store/"
113113 assert conn . method == "POST"
114114 send ( self_pid , "API called" )
You can’t perform that action at this time.
0 commit comments