Skip to content

Commit

Permalink
Fix error detection. (a better fix is coming)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 2, 2014
1 parent 06827fb commit c260c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/endpoints_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c260c7d

Please sign in to comment.