FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Error: ENOENT, stat 'my file' causes connection lost. #192

Closed raspofabs closed 11 years ago

raspofabs commented 11 years ago
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, stat '/home/raspo/adminpanel/stat.db-journal'

I presume this is because ungit noticed the file exists, then by the time it got around to calling stat on it, it was gone. This seems like something you can catch and just ignore rather than crashing on. (I don't actually know how to code node.js stuff, so I don't know how difficult it actually is to catch the error, but 'file going away' seems like a thing that should be handled.)

FredrikNoren commented 11 years ago

@raspofabs I've had lots of other issues with the way ungit's watching files so I'm trying a different approach; the commit above should make sure there's no more stating of files like that. Closing this for now but if the problem still remains with this fix please re-open.