From bcb2573c8a7acac3d1f03b31abe60e064d0e801f Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 11 Jul 2019 09:18:51 +0200 Subject: [PATCH] fix(github): pass platform-failure up when forking --- lib/platform/github/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index b8a07d87ee..840dfe2cd9 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -304,6 +304,9 @@ async function initRepo({ } ); } catch (err) /* istanbul ignore next */ { + if (err.message === 'platform-failure') { + throw err; + } if ( err.statusCode === 422 && err.message.startsWith('Object does not exist') -- GitLab