Skip to content

Commit

Permalink
fdserver: Print error upon connect() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Vander Schueren <[email protected]>
  • Loading branch information
Gregory Vander Schueren committed Jun 20, 2019
1 parent 6095268 commit 7fff86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tapmanager/fdserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (c *FDClient) close(conn *net.UnixConn) error {
func (c *FDClient) request(hdr *fdHeader, data []byte) (*fdHeader, []byte, []byte, error) {
conn, err := c.connect()
if err != nil {
return nil, nil, nil, errors.New("not connected")
return nil, nil, nil, fmt.Errorf("not connected: %v", err)
}
defer c.close(conn)

Expand Down

0 comments on commit 7fff86a

Please sign in to comment.