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:
nico 2001-01-13 13:44:40 +00:00
parent 93bbc8e4ae
commit 4fe87d40bd

View file

@ -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)