Make warnings more informative

This commit is contained in:
rfm 2023-10-30 19:56:59 +00:00
parent 40ebe6df30
commit 7fc6637390
2 changed files with 12 additions and 6 deletions

View file

@ -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)
{

View file

@ -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;
}
/**