From 8f12059cd4474ea9b74fef91b8b740359b5f4a66 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 12 May 2020 14:31:19 +0200 Subject: [PATCH] fix(gitlab): log raw error for all platform errors --- lib/platform/gitlab/gl-got-wrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index 7bf0711ba6..5e6d619a7a 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 = [ -- GitLab