Skip to content
Snippets Groups Projects
Commit da663255 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(maven): handle err.code === 'ERR_TLS_CERT_ALTNAME_INVALID

Closes #5463
parent db4f44bd
No related merge requests found
......@@ -31,7 +31,9 @@ function isPermissionsIssue(err: { statusCode: number }): boolean {
}
function isConnectionError(err: { code: string }): boolean {
return err.code === 'ECONNREFUSED';
return (
err.code === 'ERR_TLS_CERT_ALTNAME_INVALID' || err.code === 'ECONNREFUSED'
);
}
export async function downloadHttpProtocol(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment