mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:40:20 +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);
|
Stream := TLazarusResourceStream.Create(ResName, nil);
|
||||||
if LazarusResourceTypeValid(Stream.Res.ValueType)
|
if LazarusResourceTypeValid(Stream.Res.ValueType)
|
||||||
then LoadFromStream(Stream)
|
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
|
finally
|
||||||
Stream.Free;
|
Stream.Free;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user