From 4fe87d40bde33e824a386e6628bf40a92615cc1e Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 13 Jan 2001 13:44:40 +0000 Subject: [PATCH] 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 --- Source/NSApplication.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 43d339761..2aa36b753 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -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)