mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 04:52:38 +02:00
use PropValueError instead of manual raise with fixed message
git-svn-id: trunk@14787 -
This commit is contained in:
parent
3ba06c5d7b
commit
6e278016cc
@ -3523,7 +3523,7 @@ begin
|
||||
vaInt32:
|
||||
AChildPos := ReadInt32;
|
||||
else
|
||||
raise EReadError.Create('Invalid Property Value');
|
||||
PropValueError;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
@ -3661,7 +3661,7 @@ begin
|
||||
break;
|
||||
Value := GetEnumValue(PTypeInfo(EnumType), Name);
|
||||
if Value = -1 then
|
||||
raise EReadError.Create('Invalid Property Value');
|
||||
PropValueError;
|
||||
Result := Result or (1 shl Value);
|
||||
end;
|
||||
except
|
||||
|
Loading…
Reference in New Issue
Block a user