@@ -91,12 +91,13 @@ defmodule Rollbax.Reporter.Standard do
9191
9292 { _ , info , stacktrace } when is_tuple ( info ) ->
9393 case elem ( info , 0 ) do
94- % class { message: message } -> { inspect ( class ) , message , stacktrace , "" }
95- % class { } -> { inspect ( class ) , inspect ( class ) , stacktrace , "" }
96- atom when is_atom ( atom ) -> { inspect ( atom ) , inspect ( atom ) , stacktrace , "" }
97- { % class { message: message } , inner_stacktrace } -> { inspect ( class ) , message , inner_stacktrace , "" }
98- { % class { } , inner_stacktrace } -> { inspect ( class ) , inspect ( class ) , inner_stacktrace , "" }
99- { atom , inner_stacktrace } when is_atom ( atom ) -> { inspect ( atom ) , inspect ( atom ) , inner_stacktrace , "" }
94+ % class { message: message } -> { inspect ( class ) , message , stacktrace , inspect ( info ) }
95+ % class { } -> { inspect ( class ) , inspect ( class ) , stacktrace , inspect ( info ) }
96+ atom when is_atom ( atom ) -> { inspect ( atom ) , inspect ( atom ) , stacktrace , inspect ( info ) }
97+ { % class { message: message } , inner_stacktrace } -> { inspect ( class ) , message , inner_stacktrace , inspect ( info ) }
98+ { % class { } , inner_stacktrace } -> { inspect ( class ) , inspect ( class ) , inner_stacktrace , inspect ( info ) }
99+ { atom , inner_stacktrace } when is_atom ( atom ) -> { inspect ( atom ) , inspect ( atom ) , inner_stacktrace , inspect ( info ) }
100+ { { % class { message: message } , inner_stacktrace } , _ } -> { inspect ( class ) , message , inner_stacktrace , inspect ( info ) }
100101 reason -> { "ProcessCrash" , "A process crashed" , stacktrace , inspect ( reason , limit: :infinity ) }
101102 end
102103 end
0 commit comments