mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
lcl: show more informative exception message when we can't find graphic resource to load (part of issue #0013679)
git-svn-id: trunk@19902 -
This commit is contained in:
parent
1e2eaeb90e
commit
9c665c7bc8
@ -250,7 +250,7 @@ begin
|
||||
Stream := TLazarusResourceStream.Create(ResName, nil);
|
||||
if LazarusResourceTypeValid(Stream.Res.ValueType)
|
||||
then LoadFromStream(Stream)
|
||||
else raise EInvalidGraphic.Create(ClassName+': Unsupported Resourcetype: '+Stream.Res.ValueType);
|
||||
else raise EInvalidGraphic.Create(ClassName+': Unsupported Resourcetype: '+Stream.Res.ValueType+' Resource Name: '+ResName);
|
||||
finally
|
||||
Stream.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user