* add filename before eparsererror and reraise closes 0040958

This commit is contained in:
marcoonthegit 2024-06-23 13:30:05 +02:00
parent 9ea7aa74b5
commit 4300e2cfcc

View File

@ -114,7 +114,15 @@ begin
TRCResourceReader(aReader).RCDefines.Assign(fRCDefines);
SetCurrentDir(ExtractFilePath(ExpandFileName(fFileList[i])));
end;
tmpres.LoadFromStream(aStream,aReader);
try
tmpres.LoadFromStream(aStream,aReader);
except
on e :EParserError do
begin
e.message:=fFileList[i]+': '+e.message;
raise;
end;
end;
aResources.MoveFrom(tmpres);
Messages.DoVerbose('Resource information read');
finally