mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: catch Host key verification error for all lock file types
This commit is contained in:
parent
4c3581caf0
commit
259312bb97
1 changed files with 20 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue