fix: log replaceString if not found

This commit is contained in:
Rhys Arkins 2020-04-26 09:51:07 +02:00
parent e55a74e62c
commit 117824bf77

View file

@ -103,7 +103,7 @@ export async function doAutoReplace(
let searchIndex = existingContent.indexOf(replaceString); let searchIndex = existingContent.indexOf(replaceString);
if (searchIndex === -1) { if (searchIndex === -1) {
logger.warn( logger.warn(
{ depName }, { depName, existingContent, replaceString },
'Cannot find replaceString in current file content' 'Cannot find replaceString in current file content'
); );
return existingContent; return existingContent;