Skip to content

Commit

Permalink
Merge pull request #888 from GregoryVds/fdserver_error
Browse files Browse the repository at this point in the history
fdserver: Print error upon connect() failure
  • Loading branch information
lukaszo authored Jun 20, 2019
2 parents bc98860 + 7fff86a commit 6ef2793
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 6ef2793

Please sign in to comment.