Add new failed_to_parse_xml_file category for Raptor errors
authorDario Sestito <darios@symbian.org>
Fri, 09 Apr 2010 11:50:20 +0100
changeset 230 c01247054e72
parent 229 6669177dab54
child 231 914d8060176c
Add new failed_to_parse_xml_file category for Raptor errors
uh_parser/RaptorError.pm
--- a/uh_parser/RaptorError.pm	Wed Apr 07 18:16:50 2010 +0100
+++ b/uh_parser/RaptorError.pm	Fri Apr 09 11:50:20 2010 +0100
@@ -51,6 +51,7 @@
 my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given';
 my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file';
 my $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE = 'missing_bld_inf_file';
+my $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE = 'failed_to_parse_xml_file';
 
 sub process
 {
@@ -104,6 +105,12 @@
 		$subcategory = $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
 	}
+	elsif ($text =~ m,Failed to parse XML file,)
+	{
+		$severity = $RaptorCommon::SEVERITY_CRITICAL;
+		$subcategory = $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
+	}
 	elsif ($text =~ m,Could not export .* to .* : \[Errno 2\] No such file or directory: .*,)
 	{
 		$severity = $RaptorCommon::SEVERITY_MAJOR;