mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Make warnings more informative
This commit is contained in:
parent
40ebe6df30
commit
7fc6637390
2 changed files with 12 additions and 6 deletions
|
@ -1721,13 +1721,15 @@ static NSString *mainFont = nil;
|
|||
{
|
||||
if (c == nil)
|
||||
{
|
||||
NSLog(@"Location of %@ '%@' (referenced from %@) "
|
||||
@"not found or not unique.", type, r, base);
|
||||
NSLog(@"Location of %@ '%@' not found or not unique"
|
||||
@" (referenced from %@:\n%@).",
|
||||
type, r, base, [[node parent] parent]);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Location of the %@ version of %@ '%@' (referenced "
|
||||
@"from %@) not found.", c, type, r, base);
|
||||
NSLog(@"Location of the %@ version of %@ '%@' not found"
|
||||
@"(referenced from %@:\n%@).",
|
||||
c, type, r, base, [[node parent] parent]);
|
||||
}
|
||||
if (tmp == nil)
|
||||
{
|
||||
|
|
|
@ -786,9 +786,13 @@ findKey(id refs, NSString *key, NSMutableArray *path, NSMutableArray *found)
|
|||
}
|
||||
if (*u != nil)
|
||||
{
|
||||
return [t objectForKey: *u];
|
||||
n = [t objectForKey: *u];
|
||||
}
|
||||
return nil;
|
||||
else
|
||||
{
|
||||
n = nil;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue