Log errno when path watcher fails to open an fd

This commit is contained in:
Nathan Sobo
2013-01-02 03:44:25 -07:00
parent de21db0ea8
commit cb4d2f63ad

View File

@@ -164,7 +164,7 @@ static NSMutableArray *gPathWatchers;
int fd = open([path fileSystemRepresentation], O_EVTONLY, 0);
if (fd < 0) {
NSLog(@"WARNING: Could not create file descriptor for path '%@'. Error code %d.", path, fd);
NSLog(@"WARNING: Could not create file descriptor for path '%@'. Error code %d.", path, errno);
return NO;
}