diff options
Diffstat (limited to 'lib/gitlab/ci/parsers/junit_parser.rb')
-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) |