ducky/subscriptions

Paddy 2015-07-18 Parent:b240b6123548 Child:1ff031bebf9e

9:8eb19bcbf17d Go to Latest

ducky/subscriptions/memstore.go

Return errors from responses in client. When the client makes a request, non-200 responses _are not_ considered errors. So we need to check the response.Errors property, and if it has errors, _then_ we consider the request to have an error. To make this happen, we created an httpErrors type that fulfills the error interface and just wraps the response Errors property. Then callers can type-cast it and interrogate it.

History