Fix error detection. (a better fix is coming)

pull/6/head
Brendan Burns 2014-10-02 14:52:48 -07:00
parent 06827fb5db
commit c260c7d0eb
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ func (e *EndpointController) SyncServiceEndpoints() error {
currentEndpoints, err := e.client.GetEndpoints(service.ID)
if err != nil {
// TODO this is brittle as all get out, refactor the client libraries to return a structured error.
if strings.Contains(err.Error(), "(404)") {
if strings.Contains(err.Error(), "404") {
currentEndpoints = &api.Endpoints{
JSONBase: api.JSONBase{
ID: service.ID,