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

fix(gitlab): log raw error for all platform errors

parent d4866c5f
Branches
Tags 32.100.4
No related merge requests found
......@@ -33,11 +33,11 @@ async function get(path: string, options: any): Promise<GotResponse> {
}
return res;
} catch (err) /* istanbul ignore next */ {
logger.debug({ err }, 'Gitlab API error');
if (
err.statusCode === 429 ||
(err.statusCode >= 500 && err.statusCode < 600)
) {
logger.debug({ err }, 'Throwing platform failure');
throw new Error(PLATFORM_FAILURE);
}
const platformFailureCodes = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment