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

fix(gitlab): platform error for 429

parent 16876e60
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ async function get(path: string, options: any): Promise<GotResponse> { ...@@ -33,7 +33,10 @@ async function get(path: string, options: any): Promise<GotResponse> {
} }
return res; return res;
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
if (err.statusCode >= 500 && err.statusCode < 600) { if (
err.statusCode === 429 ||
(err.statusCode >= 500 && err.statusCode < 600)
) {
throw new Error(PLATFORM_FAILURE); throw new Error(PLATFORM_FAILURE);
} }
const platformFailureCodes = [ const platformFailureCodes = [
......
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