Changed the tool chain error message to be more specific.
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Nov 2006 05:10:56 +0000 (05:10 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 6 Nov 2006 05:10:56 +0000 (05:10 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1901 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java

index 7d86c64..719359a 100644 (file)
@@ -780,19 +780,26 @@ public class FpdParserTask extends Task {
         ToolChainInfo toolChainInfo = GlobalData.getToolChainInfo();\r
 \r
         if (toolChainInfo.getTargets().length == 0) {\r
-            throw new EdkException("No valid target specified! Please check your TARGET definition in Tools/Conf/target.txt.");\r
+            throw new EdkException("No valid target found! "+\r
+                                   "Please check the TARGET definition in Tools/Conf/target.txt, "+\r
+                                   "or the <BuildTarget>, <BuildOptions> in the FPD file.");\r
         }\r
 \r
         if (toolChainInfo.getTagnames().length == 0) {\r
-            throw new EdkException("No valid tool chain specified! Please check your TOOL_CHAIN_TAG definition in Tools/Conf/target.txt.");\r
+            throw new EdkException("No valid tool chain found! "+\r
+                                   "Please check the TOOL_CHAIN_TAG definition in Tools/Conf/target.txt, "+\r
+                                   "or the <BuildOptions> in the FPD file.");\r
         }\r
 \r
         if (toolChainInfo.getArchs().length == 0) {\r
-            throw new EdkException("No valid ARCH specified! Please check your TARGET_ARCH definition in Tools/Conf/target.txt.");\r
+            throw new EdkException("No valid architecture found! "+\r
+                                   "Please check the TARGET_ARCH definition in Tools/Conf/target.txt, "+\r
+                                   "or the <SupportedArchitectures>, <BuildOptions> in the FPD file.");\r
         }\r
 \r
         if (toolChainInfo.getCommands().length == 0) {\r
-            throw new EdkException("No valid COMMAND specified! Please check your TARGET definition in Tools/Conf/tools_def.txt.");\r
+            throw new EdkException("No valid COMMAND found! Please check the tool chain definitions "+\r
+                                   "in Tools/Conf/tools_def.txt.");\r
         }\r
     }\r
 }\r