FpDebug: More verbose error, if failing to open file

git-svn-id: trunk@59570 -
This commit is contained in:
martin 2018-11-17 14:02:43 +00:00
parent 3f70eb5a9d
commit b3179348c0

View File

@ -186,7 +186,7 @@ begin
FModulePtr := MapViewOfFile(FMapHandle, FILE_MAP_READ, 0, 0, 0);
if FModulePtr = nil
then begin
raise Exception.Create('Could not map view');
raise Exception.Create('Could not map view: ' + IntToStr(GetLastOSError));
Exit;
end;