# HG changeset patch # User Dario Sestito # Date 1256728614 0 # Node ID 5a7140020d52e26b69b5fbc356aa1089287a8665 # Parent 37b74b40cf0b0c242b8d9113b4ca2397282bd974 Add raptor error categories unknown_build_config and no_build_configs_given diff -r 37b74b40cf0b -r 5a7140020d52 common/tools/raptor/RaptorError.pm --- a/common/tools/raptor/RaptorError.pm Mon Oct 26 19:53:47 2009 +0000 +++ b/common/tools/raptor/RaptorError.pm Wed Oct 28 11:16:54 2009 +0000 @@ -46,6 +46,8 @@ my $CATEGORY_RAPTORERROR_CANTFINDMMPFILE = 'cant_find_mmp_file'; my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors'; my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version'; +my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config'; +my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given'; sub process { @@ -85,6 +87,18 @@ $subcategory = $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION; RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); } + elsif ($text =~ m,Unknown build configuration '.*',) + { + $severity = $RaptorCommon::SEVERITY_CRITICAL; + $subcategory = $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG; + RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); + } + elsif ($text =~ m,No build configurations given,) + { + $severity = $RaptorCommon::SEVERITY_CRITICAL; + $subcategory = $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN; + RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); + } else # log everything by default { RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);