mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Better error message for invalid unix socket format
Give more meaningful error prompts when user try to bind a directory as unix socket. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
parent
c6c4ae152a
commit
20012e423c
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func (s *Server) newServer(proto, addr string) ([]*HTTPServer, error) {
|
|||
case "unix":
|
||||
l, err := sockets.NewUnixSocket(addr, s.cfg.SocketGroup)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("can't create unix socket %s: %v", addr, err)
|
||||
}
|
||||
ls = append(ls, l)
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue