diff --git a/src/check-project/utils.js b/src/check-project/utils.js index de8cf0ff1..6caee1534 100644 --- a/src/check-project/utils.js +++ b/src/check-project/utils.js @@ -107,7 +107,8 @@ export async function ensureFileHasContents (projectDir, filePath, expectedConte }) if (!overwriteFile) { - throw new Error(`Not overwriting ${filePath} file`) + console.warn(kleur.yellow(`Not overwriting ${filePath} file`)) + return } fs.mkdirSync(path.dirname(path.join(projectDir, filePath)), {