From a45234d75f1108a166a6a3e39c7219b72d15bc11 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 19 Aug 1999 23:30:03 +0000 Subject: [PATCH] Fixes bonaza. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4725 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSObjCRuntime.m | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5279c03dd..b83a466a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-08-19 Michael Hanni + + * Source/NSObjCRuntime.m: patch from Tim Bissell to help in + debugging. (show which non-existant ivar you wanted.) + Tue Aug 3 12:36:54 1999 Adam Fedor * Source/NSInvocation.m (-initWithTarget:selector:): Hack for diff --git a/Source/NSObjCRuntime.m b/Source/NSObjCRuntime.m index 2ae616431..8d2db097f 100644 --- a/Source/NSObjCRuntime.m +++ b/Source/NSObjCRuntime.m @@ -105,7 +105,7 @@ GSGetInstanceVariable(id obj, NSString *iVarName, void *data) } if (ivar == 0) { - NSLog(@"Attempt to get non-existent ivar"); + NSLog(@"Attempt to get non-existent ivar '%s'", name); return NO; } @@ -148,7 +148,7 @@ GSSetInstanceVariable(id obj, NSString *iVarName, const void *data) } if (ivar == 0) { - NSLog(@"Attempt to set non-existent ivar"); + NSLog(@"Attempt to set non-existent ivar '%s'", name); return NO; }