From ca2d9be0f6d7f5a07dd527074a8d711a9670ece7 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 23 Apr 2020 10:06:42 +0200
Subject: [PATCH] fix(gitlab): handle ParseError

---
 lib/platform/gitlab/gl-got-wrapper.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/platform/gitlab/gl-got-wrapper.ts b/lib/platform/gitlab/gl-got-wrapper.ts
index 71338af501..f5247d7791 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;
   }
 }
-- 
GitLab