uh_parser/RaptorError.pm
changeset 230 c01247054e72
parent 228 ba90e30c0f3c
child 231 914d8060176c
--- 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;