diff options
Diffstat (limited to 'rtl/objpas/sysutils/sysutils.inc')
-rw-r--r-- | rtl/objpas/sysutils/sysutils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rtl/objpas/sysutils/sysutils.inc b/rtl/objpas/sysutils/sysutils.inc index 12067f969c..68aaddb55a 100644 --- a/rtl/objpas/sysutils/sysutils.inc +++ b/rtl/objpas/sysutils/sysutils.inc @@ -294,8 +294,10 @@ begin Writeln(hstdout^,'An unhandled exception occurred at $',HexStr(Addr),':'); if Obj is exception then Writeln(hstdout^,Obj.ClassName,': ',Exception(Obj).Message) + else if Obj is TObject then + Writeln(hstdout^,'Exception object ',Obj.ClassName,' is not of class Exception.') else - Writeln(hstdout^,'Exception object ',Obj.ClassName,' is not of class Exception.'); + Writeln(hstdout^,'Exception object is not ia valid class.'); Writeln(hstdout^,BackTraceStrFunc(Addr)); if (FrameCount>0) then begin |