mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:49:30 +02:00
Adds an error message to some icon errors with empty message
git-svn-id: trunk@31846 -
This commit is contained in:
parent
ed98d767a0
commit
48f40ebb52
@ -681,7 +681,7 @@ begin
|
||||
|
||||
ResHandle := FindResource(Instance, PChar(ResName), PChar(ResType));
|
||||
if ResHandle = 0 then
|
||||
raise EResNotFound.Create(ResName); // todo: valid exception
|
||||
raise EResNotFound.Create(Format('[TCustomIcon.LoadFromResourceName] The resource "%s" was not found', [ResName])); // todo: valid exception
|
||||
LoadFromResourceHandle(Instance, ResHandle);
|
||||
end;
|
||||
|
||||
@ -695,7 +695,7 @@ begin
|
||||
|
||||
ResHandle := FindResource(Instance, PChar(ResID), PChar(ResType));
|
||||
if ResHandle = 0 then
|
||||
raise EResNotFound.Create(''); // todo: valid exception
|
||||
raise EResNotFound.Create(Format('[TCustomIcon.LoadFromResourceID] The resource #%d was not found', [ResID])); // todo: valid exception
|
||||
LoadFromResourceHandle(Instance, ResHandle);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user