1
0
mirror of synced 2024-09-19 01:36:08 +00:00

Added: name to duplicate define exception

This commit is contained in:
Mark van Renswoude 2004-10-30 12:28:15 +00:00
parent e19d798e51
commit 06f6bbd768

View File

@ -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);