mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 19:31:18 +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);
|
||||
}
|
||||
|
||||
retVal = NSRunCriticalAlertPanel ([[NSProcessInfo processInfo] processName],
|
||||
@"%@: %@",
|
||||
@"Abort", @"Ignore", DEBUG_BUTTON,
|
||||
[exception name], [exception reason]);
|
||||
retVal = NSRunCriticalAlertPanel
|
||||
([NSString stringWithFormat: @"Critical Error in %@",
|
||||
[[NSProcessInfo processInfo] processName]],
|
||||
@"%@: %@", @"Abort", @"Ignore", DEBUG_BUTTON,
|
||||
[exception name], [exception reason]);
|
||||
|
||||
/* The user wants to abort */
|
||||
if (retVal == NSAlertDefault)
|
||||
|
|
Loading…
Reference in a new issue