diff --git a/lib/modules/scaffolding-react/index.js b/lib/modules/scaffolding-react/index.js index 9885b35c6..af125c72f 100644 --- a/lib/modules/scaffolding-react/index.js +++ b/lib/modules/scaffolding-react/index.js @@ -57,7 +57,7 @@ class ScaffoldingReact { const filename = contract.className.toLowerCase() + '.' + extension; const filePath = './app/' + filename; if (fs.existsSync(filePath)){ - // throw new Error("file '" + filePath + "' already exists"); + throw new Error("file '" + filePath + "' already exists"); } const templatePath = fs.embarkPath('lib/modules/scaffolding-react/templates/' + templateFilename);