mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
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>
This commit is contained in:
parent
ac4578af36
commit
fa6e2804de
@ -29,7 +29,7 @@ ERR_MATCH = 'No matching right parenthesis.'
|
|||||||
ERR_STRING_TOKEN = 'Bad string token: [%s].'
|
ERR_STRING_TOKEN = 'Bad string token: [%s].'
|
||||||
ERR_MACRO_TOKEN = 'Bad macro token: [%s].'
|
ERR_MACRO_TOKEN = 'Bad macro token: [%s].'
|
||||||
ERR_EMPTY_TOKEN = 'Empty token is not allowed.'
|
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_VALID_TOKEN = 'No more valid token found from rest of string: [%s].'
|
||||||
ERR_EXPR_TYPE = 'Different types found in expression.'
|
ERR_EXPR_TYPE = 'Different types found in expression.'
|
||||||
ERR_OPERATOR_UNSUPPORT = 'Unsupported operator: [%s]'
|
ERR_OPERATOR_UNSUPPORT = 'Unsupported operator: [%s]'
|
||||||
|
@ -26,7 +26,7 @@ ERR_MATCH = 'No matching right parenthesis.'
|
|||||||
ERR_STRING_TOKEN = 'Bad string token: [%s].'
|
ERR_STRING_TOKEN = 'Bad string token: [%s].'
|
||||||
ERR_MACRO_TOKEN = 'Bad macro token: [%s].'
|
ERR_MACRO_TOKEN = 'Bad macro token: [%s].'
|
||||||
ERR_EMPTY_TOKEN = 'Empty token is not allowed.'
|
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_VALID_TOKEN = 'No more valid token found from rest of string: [%s].'
|
||||||
ERR_EXPR_TYPE = 'Different types found in expression.'
|
ERR_EXPR_TYPE = 'Different types found in expression.'
|
||||||
ERR_OPERATOR_UNSUPPORT = 'Unsupported operator: [%s]'
|
ERR_OPERATOR_UNSUPPORT = 'Unsupported operator: [%s]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user