Improved warning logs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9965 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-05-18 19:56:54 +00:00
parent 3a4145f95b
commit 20dc038685
3 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,9 @@
we return nil on initialisation failure rather than raising an
exception. I believe that init failures should deallocate their
objects and return nil.
* Source/NSArray.m: ([-initWithContentsOfFile:]) include filename in
NSWarnMLog() message.
* Source/NSDictionary.m: ([-initWithContentsOfFile:]) use NSWarnMLog
2001-05-14 Adam Fedor <fedor@gnu.org>

View file

@ -441,7 +441,7 @@ static SEL rlSel;
return self;
}
}
NSWarnMLog(@"Contents of file does not contain an array", 0);
NSWarnMLog(@"Contents of file '%@' does not contain an array", file);
RELEASE(self);
return nil;
}

View file

@ -428,7 +428,7 @@ static SEL appSel;
return self;
}
}
NSLog(@"Contents of file '%@' does not contain a dictionary", path);
NSWarnMLog(@"Contents of file '%@' does not contain a dictionary", path);
RELEASE(self);
return nil;
}