Skip to content
Snippets Groups Projects
Commit b4dc6aed authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: don’t throw error if failing to set new package.json value (#737)

parent 9fdd7023
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment