|
@@ -42,6 +42,12 @@ func (s *CertificateServer) ListZoneCertificates(ctx context.Context, requestClo
|
|
|
}
|
|
|
ctxAPI := context.Background()
|
|
|
response, err := api.ListSSL(ctxAPI, requestCloudflare.GetZoneId())
|
|
|
+ if err != nil {
|
|
|
+ return &cert.ListZoneCertificatesReplyCloudflare{
|
|
|
+ Result: nil,
|
|
|
+ Success: false,
|
|
|
+ }, err
|
|
|
+ }
|
|
|
list := make([]*cert.ZoneCustomSSL, len(response))
|
|
|
for i, detail := range response {
|
|
|
list[i] = Go2ProtoCertificate(detail)
|