mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 02:01:04 +00:00
Attempt at making the panel run upon uncaught exceptions a bit more user
friendly by adding the word 'error' to the panel title git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8582 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
93bbc8e4ae
commit
4fe87d40bd
1 changed files with 5 additions and 4 deletions
|
@ -103,10 +103,11 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
|
||||||
defaultUncaughtExceptionHandler (exception);
|
defaultUncaughtExceptionHandler (exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
retVal = NSRunCriticalAlertPanel ([[NSProcessInfo processInfo] processName],
|
retVal = NSRunCriticalAlertPanel
|
||||||
@"%@: %@",
|
([NSString stringWithFormat: @"Critical Error in %@",
|
||||||
@"Abort", @"Ignore", DEBUG_BUTTON,
|
[[NSProcessInfo processInfo] processName]],
|
||||||
[exception name], [exception reason]);
|
@"%@: %@", @"Abort", @"Ignore", DEBUG_BUTTON,
|
||||||
|
[exception name], [exception reason]);
|
||||||
|
|
||||||
/* The user wants to abort */
|
/* The user wants to abort */
|
||||||
if (retVal == NSAlertDefault)
|
if (retVal == NSAlertDefault)
|
||||||
|
|
Loading…
Reference in a new issue