Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-06 15:07:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-06 15:07:56 +0300
commit045c0f9554a99c80d0a127540da168e272a9f977 (patch)
tree2c4b0d10c9432e68b6c1aca2097e663ba18b48ec /lib/sentry
parent669c24d9276db9a73bbcea40aeab98273aae9e5e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry')
-rw-r--r--lib/sentry/client.rb6
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)