Fixed to use properly the base exception handler when aborting

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-01-27 13:20:51 +00:00
parent edf9355f16
commit d3a76d36c2

View file

@ -105,12 +105,9 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
* quit. */
if (GSCurrentContext() == nil)
{
_NSUncaughtExceptionHandler = _preventRecursion;
fprintf (stderr,
"Uncaught exception %s, reason: %s\n",
[[exception name] lossyCString],
[[exception reason] lossyCString]);
abort();
/* The following will raise again the exception using the base
library exception handler */
[exception raise];
}
retVal = NSRunCriticalAlertPanel
@ -122,7 +119,9 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
/* The user wants to abort */
if (retVal == NSAlertDefault)
{
defaultUncaughtExceptionHandler (exception);
/* The following will raise again the exception using the base
library exception handler */
[exception raise];
}
/* The user said to go on - more fun I guess - turn the AppKit