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:
paul 2009-05-10 07:48:46 +00:00
parent 1e2eaeb90e
commit 9c665c7bc8

View File

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