mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 21:00:30 +02:00
* added conditional possibility of displaying the last OS error in information displayed for unhandled exceptions
git-svn-id: trunk@29622 -
This commit is contained in:
parent
6e4dea39d3
commit
329f788f58
@ -297,7 +297,12 @@ begin
|
||||
else if Obj is TObject then
|
||||
Writeln(hstdout^,'Exception object ',Obj.ClassName,' is not of class Exception.')
|
||||
else
|
||||
Writeln(hstdout^,'Exception object is not ia valid class.');
|
||||
Writeln(hstdout^,'Exception object is not a valid class.');
|
||||
{$IFDEF HAS_OSERROR}
|
||||
{$IFDEF DEBUG_EXCEPTIONS_LASTOSERROR}
|
||||
WriteLn (HStdOut^, 'Last OS error detected in the RTL: ', GetLastOSError);
|
||||
{$ENDIF DEBUG_EXCEPTIONS_LASTOSERROR}
|
||||
{$ENDIF HAS_OSERROR}
|
||||
Writeln(hstdout^,BackTraceStrFunc(Addr));
|
||||
if (FrameCount>0) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user