Fixes test server startup returning wrong error.

Seen in https://travis-ci.org/hashicorp/consul/builds/214521317.
This commit is contained in:
James Phillips 2017-03-23 21:40:14 -07:00
parent 9a6dd658a8
commit 15e7247131
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ func NewTestServerConfig(cb ServerConfigCallback) (*TestServer, error) {
}
if startErr != nil {
defer server.Stop()
return nil, errors.Wrap(err, "failed waiting for server to start")
return nil, errors.Wrap(startErr, "failed waiting for server to start")
}
return server, nil