From 9d6ec38a7ef71c114fc5c39615c104a7e48d0662 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 15 Jan 2020 04:35:18 +0100 Subject: [PATCH] fix(bundler): look in stdout and stderr for resolve matches --- lib/manager/bundler/artifacts.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/manager/bundler/artifacts.ts b/lib/manager/bundler/artifacts.ts index 251f34abc1..4b280afcf6 100644 --- a/lib/manager/bundler/artifacts.ts +++ b/lib/manager/bundler/artifacts.ts @@ -161,13 +161,14 @@ export async function updateArtifacts( global.repoCache.bundlerArtifactsError = BUNDLER_INVALID_CREDENTIALS; throw new Error(BUNDLER_INVALID_CREDENTIALS); } + const output = err.stdout + err.stderr; const resolveMatchRe = new RegExp('\\s+(.*) was resolved to', 'g'); - if (err.stderr && err.stderr.match(resolveMatchRe)) { + if (output.match(resolveMatchRe)) { logger.debug({ err }, 'Bundler has a resolve error'); const resolveMatches = []; let resolveMatch; do { - resolveMatch = resolveMatchRe.exec(err.stderr); + resolveMatch = resolveMatchRe.exec(output); if (resolveMatch) { resolveMatches.push(resolveMatch[1].split(' ').shift()); } -- GitLab