diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 09:13:39 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 09:13:39 +0300 |
commit | 85af3ea21a5a772cb22756190268ba3f921a6400 (patch) | |
tree | 4231bb48df2693c9600b5c5b7dabb9bae41c1d3e /lib/gitlab/ci/parsers | |
parent | 1f53cf7cf0cb53b5d69ab141fa9020356e62027e (diff) |
Added unique identifier to calculate_reactive_cache. Decoupled comparison logic to service. Fixed N+1 select queries.
Diffstat (limited to 'lib/gitlab/ci/parsers')
-rw-r--r-- | lib/gitlab/ci/parsers/junit_parser.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/parsers/junit_parser.rb b/lib/gitlab/ci/parsers/junit_parser.rb index 741c62707b0..68217c6b5c4 100644 --- a/lib/gitlab/ci/parsers/junit_parser.rb +++ b/lib/gitlab/ci/parsers/junit_parser.rb @@ -8,8 +8,10 @@ module Gitlab def initialize(xml_data) @data = Hash.from_xml(xml_data) + rescue REXML::ParseException + raise JunitParserError, 'Failed to parse XML' rescue - raise JunitParserError, 'Invalid XML data' + raise JunitParserError, 'Unknown error' end def parse!(test_suite) |