Exit on uncaught exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21452 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-12 07:07:00 +00:00
parent 4dcb44655a
commit f98ecc041a
2 changed files with 10 additions and 7 deletions

View file

@ -111,7 +111,7 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
[[NSProcessInfo processInfo] processName]],
@"%@: %@",
_(@"Abort"),
_(@"Ignore"),
nil,
#ifdef DEBUG
_(@"Debug"),
#else
@ -127,16 +127,11 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
library exception handler */
[exception raise];
}
else if (retVal == NSAlertOther)
else
{
/* Debug button: abort so we can trace the error in gdb */
abort();
}
/* The user said to go on - more fun I guess - turn the AppKit
exception handler on again */
NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler);
[NSApp run]; /* try entering the run loop again */
}
/* This is the bundle from where we load localization of messages. */