Revision 082c5adb

b/lib/cli.py
539 539
    obuf.write("Unhandled Ganeti error: %s" % msg)
540 540
  elif isinstance(err, luxi.NoMasterError):
541 541
    obuf.write("Cannot communicate with the master daemon.\nIs it running"
542
               " and listening on '%s'?" % err.args[0])
542
               " and listening for connections?")
543 543
  elif isinstance(err, luxi.TimeoutError):
544 544
    obuf.write("Timeout while talking to the master daemon. Error:\n"
545 545
               "%s" % msg)
b/lib/luxi.py
154 154
      except socket.timeout, err:
155 155
        raise TimeoutError("Connect timed out: %s" % str(err))
156 156
      except socket.error, err:
157
        if err.args[0] == errno.ENOENT:
157
        if err.args[0] in (errno.ENOENT, errno.ECONNREFUSED):
158 158
          raise NoMasterError((address,))
159 159
        raise
160 160
      self.socket.settimeout(self._rwtimeout)

Also available in: Unified diff