diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts index 5e6d619a7a1e91ac06f9631ef7a7347dc45cb46a..60e69d479bb401e4479bf90ba0ee40864adc0177 100644 --- a/lib/platform/gitlab/gl-got-wrapper.ts +++ b/lib/platform/gitlab/gl-got-wrapper.ts @@ -33,6 +33,11 @@ async function get(path: string, options: any): Promise<GotResponse> { } return res; } catch (err) /* istanbul ignore next */ { + if (err.statusCode === 404) { + logger.trace({ err }, 'GitLab 404'); + logger.debug({ url: err.url }, 'GitLab API 404'); + throw err; + } logger.debug({ err }, 'Gitlab API error'); if ( err.statusCode === 429 ||