Uncommented error throwing

This commit is contained in:
Richard Ramos 2018-05-11 16:14:53 -04:00 committed by Pascal Precht
parent 8f1e19f1a2
commit 152cf4c87b
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

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