inotify: friendlier message when daemon not running

This commit is contained in:
Matt Mackall 2008-10-22 17:41:41 -05:00
parent e564d351f3
commit 7989382568

View File

@ -85,6 +85,8 @@ def reposetup(ui, repo):
except socket.error, err:
ui.warn(_('could not talk to new inotify '
'server: %s\n') % err[-1])
elif err[0] == errno.ENOENT:
ui.warn(_('(inotify server not running)\n'))
else:
ui.warn(_('failed to contact inotify server: %s\n')
% err[-1])