From b4dc6aedb294750551d3c25cf99d988d4073e3d8 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Sat, 26 Aug 2017 08:02:29 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20throw=20error=20if=20fai?=
 =?UTF-8?q?ling=20to=20set=20new=20package.json=20value=20(#737)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/workers/branch/package-json.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/workers/branch/package-json.js b/lib/workers/branch/package-json.js
index bf404a01d6..d4a2b2d164 100644
--- a/lib/workers/branch/package-json.js
+++ b/lib/workers/branch/package-json.js
@@ -44,11 +44,11 @@ function setNewValue(currentFileContent, depType, depName, newVersion, logger) {
   }
   // istanbul ignore if
   if (!newFileContent) {
-    logger.debug(
+    logger.warn(
       { currentFileContent, parsedContents, depType, depName, newVersion },
       'setNewValue error'
     );
-    throw new Error('Could not set new value');
+    return currentFileContent;
   }
   return newFileContent;
 }
-- 
GitLab