mirror of https://github.com/pulumi/pulumi.git
7ab7f00ced
The HTTP client in Go only returns an error if there is a protocol level failure, or an error caused by client policy (which we don't use). However the policy pack can fail to be downloaded, and return a non 200 HTTP status. This should still be considered an error. Currently we would only detect this when trying to unpack the policy pack. Catching and returning this error earlier allows us to give better information about the failure to the user. I got curious about https://github.com/pulumi/pulumi/issues/16275, and did a short dive into the code. It looks like this should give us a better error message there. |
||
---|---|---|
.. | ||
api.go | ||
api_endpoints.go | ||
api_test.go | ||
client.go | ||
client_test.go | ||
doc.go | ||
marshal_post_1.20.go | ||
marshal_pre_1.20.go |