terraform/registry
Alisdair McDiarmid 1c1df6dc50 registry: Fix panic when server is unreachable
Non-HTTP errors previously resulted in a panic due to dereferencing the
resp pointer while it was nil, as part of rendering the error message.
This commit changes the error message formatting to cope with a nil
response, and extends test coverage.

Fixes #24384
2020-03-19 10:20:10 -04:00
..
regsrc Replace import paths & set UA string where necessary 2019-10-11 22:40:54 +01:00
response registry/response: Remove unused verified bool 2019-08-07 12:33:51 -04:00
test registry: Fix panic when server is unreachable 2020-03-19 10:20:10 -04:00
client.go registry: Fix panic when server is unreachable 2020-03-19 10:20:10 -04:00
client_test.go registry: Fix panic when server is unreachable 2020-03-19 10:20:10 -04:00
errors.go Replace import paths & set UA string where necessary 2019-10-11 22:40:54 +01:00