diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index 7bf0711ba69b457dc6bb13e0bf8626c3d6d8742e..5e6d619a7a1e91ac06f9631ef7a7347dc45cb46a 100644 --- a/lib/platform/gitlab/gl-got-wrapper.ts +++ b/lib/platform/gitlab/gl-got-wrapper.ts @@ -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 = [