Skip to content

Commit

Permalink
fix: #932
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Oct 24, 2019
1 parent 7451291 commit 9d46787
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/raven/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,15 @@ def encode(event)
end

def get_message_from_exception(event)
(event && event[:exception][:values][0][:type] &&
event[:exception][:values][0][:value] &&
"#{event[:exception][:values][0][:type]}: #{event[:exception][:values][0][:value]}")
(
event &&
event[:exception] &&
event[:exception][:values] &&
event[:exception][:values][0] &&
event[:exception][:values][0][:type] &&
event[:exception][:values][0][:value] &&
"#{event[:exception][:values][0][:type]}: #{event[:exception][:values][0][:value]}"
)
end

def get_log_message(event)
Expand Down

0 comments on commit 9d46787

Please sign in to comment.