summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/Expression.py
diff options
context:
space:
mode:
authorzhijufan <zhijux.fan@intel.com>2018-08-22 16:22:22 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-09-06 09:12:56 +0800
commitfa6e2804de6a7c9b108afcba4b03714b13f4a113 (patch)
tree516fe902e2c9cf75ec1b8695054cc814748b5431 /BaseTools/Source/Python/Common/Expression.py
parentac4578af364916a8848453ad0f719e872b8782ec (diff)
downloadedk2-fa6e2804de6a7c9b108afcba4b03714b13f4a113.tar.gz
edk2-fa6e2804de6a7c9b108afcba4b03714b13f4a113.tar.bz2
edk2-fa6e2804de6a7c9b108afcba4b03714b13f4a113.zip
BaseTools: Report more clear error message for PCD used in expression
Only the FeatureFlag type or FixedAtBuild type can be used in the expression. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Expression.py')
-rw-r--r--BaseTools/Source/Python/Common/Expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py
index 78c69faad6..ff9271031b 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -29,7 +29,7 @@ ERR_MATCH = 'No matching right parenthesis.'
ERR_STRING_TOKEN = 'Bad string token: [%s].'
ERR_MACRO_TOKEN = 'Bad macro token: [%s].'
ERR_EMPTY_TOKEN = 'Empty token is not allowed.'
-ERR_PCD_RESOLVE = 'PCD token cannot be resolved: [%s].'
+ERR_PCD_RESOLVE = 'The PCD should be FeatureFlag type or FixedAtBuild type: [%s].'
ERR_VALID_TOKEN = 'No more valid token found from rest of string: [%s].'
ERR_EXPR_TYPE = 'Different types found in expression.'
ERR_OPERATOR_UNSUPPORT = 'Unsupported operator: [%s]'