Add raptor error categories unknown_build_config and no_build_configs_given
authorDario Sestito <darios@symbian.org>
Wed, 28 Oct 2009 11:16:54 +0000
changeset 714 5a7140020d52
parent 713 37b74b40cf0b
child 715 ee8b99c7aa0d
Add raptor error categories unknown_build_config and no_build_configs_given
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);