FpDebug: more verbose last error

git-svn-id: trunk@61914 -
This commit is contained in:
martin 2019-09-24 23:36:30 +00:00
parent f117e5216d
commit 1e7c605983

View File

@ -157,9 +157,12 @@ uses
function GetLastErrorText: String;
var
i: DWORD;
begin
{$ifdef windows}
Result := GetLastErrorText(GetLastError);
i := GetLastError;
Result := IntToStr(i) + ': ' + GetLastErrorText(i);
{$endif}
end;