Merge pull request #18536 from WeiZhang555/daemon-err
Better error message for invalid unix socket format Upstream-commit: 98d97743d2ef40156a28f82381d60a0635a1aff8 Component: engine
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user