Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ func TestOpenFailedVhost(t *testing.T) {
}()

c, err := Open(rwc, defaultConfig())
if err != ErrVhost {
t.Fatalf("expected ErrVhost got: %+v on %+v", err, c)
if err == nil {
t.Fatalf("expected not nil error got: %+v on %+v", err, c)
}
}

Expand Down
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ func (c *Connection) openVhost(config Config) error {

if err := c.call(req, res); err != nil {
// Cannot be closed yet, but we know it's a vhost problem
return ErrVhost
return err
}

c.Config.Vhost = config.Vhost
Expand Down