mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 09:55:54 +02:00
FpDebug: more verbose last error
git-svn-id: trunk@61914 -
This commit is contained in:
parent
f117e5216d
commit
1e7c605983
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user