From 14d86ba8ace8ef215dca8257e23097608c0235f5 Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 2 Sep 1996 20:06:14 +0000 Subject: [PATCH] Use new exception variable name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1692 72102866-910b-0410-8b05-ffd578937521 --- Testing/nsbundle.m | 2 +- Testing/values.m | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Testing/nsbundle.m b/Testing/nsbundle.m index 2f9219960..1439f004d 100644 --- a/Testing/nsbundle.m +++ b/Testing/nsbundle.m @@ -62,7 +62,7 @@ main(int ac, char *av[]) object = [bundle principalClass]; NS_HANDLER object = nil; - fprintf(stderr, " ERROR: %s\n", [[exception reason] cString]); + fprintf(stderr, " ERROR: %s\n", [[localException reason] cString]); fprintf(stderr, " Either there is a problem with dynamic loading,\n"); fprintf(stderr, " or there is no dynamic loader on your system\n"); exit(1); diff --git a/Testing/values.m b/Testing/values.m index 6016f5469..603861142 100644 --- a/Testing/values.m +++ b/Testing/values.m @@ -48,13 +48,15 @@ NS_DURING v2 = [NSValue value:NULL withObjCType:@encode(int)]; NS_HANDLER printf("Caught our exception, name %s and reason: %s\n", - [[exception name] cString], [[exception reason] cString]); - [exception raise]; + [[localException name] cString], + [[localException reason] cString]); + [localException raise]; NS_ENDHANDLER NS_HANDLER printf("Caught our reraised exception, name %s and reason: %s\n", - [[exception name] cString], [[exception reason] cString]); + [[localException name] cString], + [[localException reason] cString]); NS_ENDHANDLER