mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Log a better error upon failing to open an fd in path watcher
I've been struggling with some intermittent failures, so I'm hoping the code returned from `open` might shed some light on the issue.
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 create file descriptor for path '%@'", path);
|
||||
NSLog(@"WARNING: Could not create file descriptor for path '%@'. Error code %d.", path, fd);
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user