Skip to content

Commit ca32638

Browse files
committed
Add a bit more debug
1 parent db4dfdc commit ca32638

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

Source/NSPathUtilities.m

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,23 @@ @interface GSPathUtilities : NSObject
397397
path = [dict objectForKey: key];
398398
if (path != nil)
399399
{
400+
NSString *orig = path;
401+
400402
path = getPath(path);
401-
if ([path isAbsolutePath] == NO)
403+
if ([path isAbsolutePath])
404+
{
405+
if (GSDebugSet(debugKey))
406+
{
407+
fprintf(stderr, "Configured path for '%s' is '%s'.\n",
408+
[key UTF8String], [orig UTF8String]);
409+
if (path != orig)
410+
{
411+
fprintf(stderr, " Resolved relative to '%s' as '%s'.\n",
412+
[gnustepConfigPath UTF8String], [path UTF8String]);
413+
}
414+
}
415+
}
416+
else
402417
{
403418
fprintf(stderr, "GNUstep configuration file entry '%s' ('%s') is not "
404419
"an absolute path.\nPlease fix your configuration file.\n",

0 commit comments

Comments
 (0)