diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-06 15:07:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-06 15:07:56 +0300 |
commit | 045c0f9554a99c80d0a127540da168e272a9f977 (patch) | |
tree | 2c4b0d10c9432e68b6c1aca2097e663ba18b48ec /lib/sentry/client.rb | |
parent | 669c24d9276db9a73bbcea40aeab98273aae9e5e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry/client.rb')
-rw-r--r-- | lib/sentry/client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sentry/client.rb b/lib/sentry/client.rb index dd589b6194d..65bedbf9e0f 100644 --- a/lib/sentry/client.rb +++ b/lib/sentry/client.rb @@ -187,13 +187,13 @@ module Sentry def parse_stack_trace(event) exception_entry = event.dig('entries')&.detect { |h| h['type'] == 'exception' } - return unless exception_entry + return [] unless exception_entry exception_values = exception_entry.dig('data', 'values') stack_trace_entry = exception_values&.detect { |h| h['stacktrace'].present? } - return unless stack_trace_entry + return [] unless stack_trace_entry - stack_trace_entry.dig('stacktrace', 'frames') + stack_trace_entry.dig('stacktrace', 'frames') || [] end def map_to_error(issue) |