Merge pull request #3994 from smarterclayton/log_failure_to_create_service

Print the returned object in the event of a publish error
This commit is contained in:
Satnam Singh 2015-01-30 15:54:16 -08:00
commit b40d079551

View File

@ -104,7 +104,7 @@ func (m *Master) createMasterServiceIfNeeded(serviceName string, port int) error
// If all worked, we get back an *api.Service object.
return nil
}
return fmt.Errorf("unexpected response: %#v", resp)
return fmt.Errorf("unexpected response: %#v", resp.Object)
}
// ensureEndpointsContain sets the endpoints for the given service. Also removes