# HG changeset patch # User Dario Sestito # Date 1270810220 -3600 # Node ID c01247054e722951b83268f919b4bed26e305bd7 # Parent 6669177dab5476c4c52ffcf0d03a0a5962761109 Add new failed_to_parse_xml_file category for Raptor errors diff -r 6669177dab54 -r c01247054e72 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;