diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index 71338af501434507edf97560c570f0b4a75e0f99..f5247d77913ae02681c053ab0bfc853deb557bd5 100644 --- a/lib/platform/gitlab/gl-got-wrapper.ts +++ b/lib/platform/gitlab/gl-got-wrapper.ts @@ -48,6 +48,9 @@ async function get(path: string, options: any): Promise<GotResponse> { if (platformFailureCodes.includes(err.code)) { throw new Error(PLATFORM_FAILURE); } + if (err.name === 'ParseError') { + throw new Error(PLATFORM_FAILURE); + } throw err; } }