mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
edf9355f16
commit
d3a76d36c2
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue