Uncommented error throwing

This commit is contained in:
Richard Ramos 2018-05-11 16:14:53 -04:00 committed by Iuri Matias
parent 608211cb7a
commit bac10c327e

View File

@ -52,7 +52,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);