From 995b067f6336c7b1b42cd595c99acfff20e92797 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 11 May 2018 16:14:53 -0400 Subject: [PATCH] Uncommented error throwing --- lib/modules/scaffolding-react/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/scaffolding-react/index.js b/lib/modules/scaffolding-react/index.js index 9885b35c..af125c72 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);