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

fix(gitlab): catch UNABLE_TO_VERIFY_LEAF_SIGNATURE

parent ae80bf44
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ async function get(path: string, options: any) { ...@@ -33,7 +33,10 @@ async function get(path: string, options: any) {
if (err.statusCode >= 500 && err.statusCode < 600) { if (err.statusCode >= 500 && err.statusCode < 600) {
throw new Error('platform-failure'); throw new Error('platform-failure');
} }
if (err.code === 'ECONNRESET') { if (
err.code === 'ECONNRESET' ||
err.code === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
) {
throw new Error('platform-failure'); throw new Error('platform-failure');
} }
throw err; throw err;
......
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