diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-01-21 23:28:34 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-01-21 23:28:34 +0000 |
commit | 1903b037de2fb3e75826406b46f055acb70963fa (patch) | |
tree | 604cd8b790fe14e5fbe441d4cd647c80d2a36a9a /rtl/objpas/sysutils/sysutils.inc | |
parent | ad1141d52f8353457053b925cd674fe1d5c4eafc (diff) | |
parent | 953d907e4d6c3a5c2f8aaee6e5e4f73c55ce5985 (diff) | |
download | fpc-blocks.tar.gz |
* synchronised with trunk till r29513blocks
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/blocks@29516 3ad0048d-3df7-0310-abae-a5850022a9f2
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 |