mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
3a4145f95b
commit
20dc038685
3 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue