inotify: friendlier message when daemon not running
authorMatt Mackall <mpm@selenic.com>
Wed, 22 Oct 2008 17:41:41 -0500
changeset 7217 9fa2f8dcb869
parent 7216 292fb2ad2846
child 7218 1bd7f90465b3
inotify: friendlier message when daemon not running
hgext/inotify/__init__.py
--- a/hgext/inotify/__init__.py	Wed Oct 22 17:34:52 2008 -0500
+++ b/hgext/inotify/__init__.py	Wed Oct 22 17:41:41 2008 -0500
@@ -85,6 +85,8 @@
                         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])