From d5c8c300d6a8726faea2385fcb05710eb912e86f Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 26 Mar 2018 11:21:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20sklp=20branch=20creation=20for=20?= =?UTF-8?q?=E2=80=9CHost=20key=20verification=20failed=E2=80=9D=20install?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/workers/branch/lock-files.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/workers/branch/lock-files.js b/lib/workers/branch/lock-files.js index 16ff2d38a4..befbd60593 100644 --- a/lib/workers/branch/lock-files.js +++ b/lib/workers/branch/lock-files.js @@ -428,6 +428,11 @@ async function getUpdatedLockFiles(config) { } } } + // istanbul ignore if + if (res.stderr && res.stderr.includes('Host key verification failed')) { + logger.info({ stderr: res.stderr }, 'Host key verification failed'); + throw new Error('internal-error'); + } lockFileErrors.push({ lockFile: lockFileName, stderr: res.stderr, -- GitLab