From 6a7f6fbb0178b56e46a7c26114023c5766e945d0 Mon Sep 17 00:00:00 2001 From: Sergio Zharinov <zharinov@users.noreply.github.com> Date: Wed, 19 Feb 2020 19:08:21 +0400 Subject: [PATCH] fix(html): Log and return for wrong managerData (#5513) --- lib/manager/html/update.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/manager/html/update.ts b/lib/manager/html/update.ts index c2ace1d3f1..b1a3e240e4 100644 --- a/lib/manager/html/update.ts +++ b/lib/manager/html/update.ts @@ -47,6 +47,11 @@ export async function updateDependency({ const tagPart = fileContent.slice(tagPosition, tagPosition + tagLength); const rightPart = fileContent.slice(tagPosition + tagLength); const dep = extractDep(tagPart); + /* istanbul ignore if */ + if (!dep) { + logger.warn(`Could not upgrade html`); + return null; + } if (dep.currentValue === newValue) { return fileContent; } -- GitLab