diff --git a/lib/workers/branch/lock-files.js b/lib/workers/branch/lock-files.js index befbd60593ad7200bce86643a1fc7d0e606677d1..52055146dd354fd1e3d66f3d76382e54890ea531 100644 --- a/lib/workers/branch/lock-files.js +++ b/lib/workers/branch/lock-files.js @@ -480,6 +480,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, @@ -527,6 +532,11 @@ async function getUpdatedLockFiles(config) { /* eslint-enable no-useless-escape */ } } + // 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, @@ -572,6 +582,11 @@ async function getUpdatedLockFiles(config) { } } } + // istanbul ignore if + if (res.stdout && res.stdout.includes('Host key verification failed')) { + logger.info({ stdout: res.stdout }, 'Host key verification failed'); + throw new Error('internal-error'); + } lockFileErrors.push({ lockFile: lockFileName, stderr: res.stderr, @@ -614,6 +629,11 @@ async function getUpdatedLockFiles(config) { ) { throw new Error('Out of disk space when generating yarn.lock'); } + // 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, stderr: res.stderr,