Uncommented error throwing

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

View File

@ -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);