Merge branch 'ab/http-pinned-public-key-mismatch'
HTTPS error handling updates. * ab/http-pinned-public-key-mismatch: http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors
This commit is contained in:
@ -499,6 +499,10 @@ static struct discovery *discover_refs(const char *service, int for_push)
|
||||
show_http_message(&type, &charset, &buffer);
|
||||
die(_("Authentication failed for '%s'"),
|
||||
transport_anonymize_url(url.buf));
|
||||
case HTTP_NOMATCHPUBLICKEY:
|
||||
show_http_message(&type, &charset, &buffer);
|
||||
die(_("unable to access '%s' with http.pinnedPubkey configuration: %s"),
|
||||
transport_anonymize_url(url.buf), curl_errorstr);
|
||||
default:
|
||||
show_http_message(&type, &charset, &buffer);
|
||||
die(_("unable to access '%s': %s"),
|
||||
|
Reference in New Issue
Block a user