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