mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Log errno when path watcher fails to open an fd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user