Added: name to duplicate define exception
This commit is contained in:
parent
e19d798e51
commit
06f6bbd768
@ -184,7 +184,7 @@ resourcestring
|
|||||||
RSInvalidRange = 'Invalid range!';
|
RSInvalidRange = 'Invalid range!';
|
||||||
RSInvalidType = 'Invalid type!';
|
RSInvalidType = 'Invalid type!';
|
||||||
RSUndefined = 'Undefined setting: %s!';
|
RSUndefined = 'Undefined setting: %s!';
|
||||||
RSDefineExists = 'Define already exists!';
|
RSDefineExists = 'Define "%s" already exists!';
|
||||||
|
|
||||||
|
|
||||||
{============================ TX2Settings
|
{============================ TX2Settings
|
||||||
@ -488,7 +488,7 @@ var
|
|||||||
begin
|
begin
|
||||||
sHash := ASection + #0 + AName;
|
sHash := ASection + #0 + AName;
|
||||||
if FDefines.Exists(sHash) then
|
if FDefines.Exists(sHash) then
|
||||||
raise EX2SettingsExists.Create(RSDefineExists);
|
raise EX2SettingsExists.CreateFmt(RSDefineExists, [ASection + '.' + AName]);
|
||||||
|
|
||||||
// Validate type
|
// Validate type
|
||||||
vtValue := CheckVarType(AValue);
|
vtValue := CheckVarType(AValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user