Uncommented error throwing

This commit is contained in:
Richard Ramos 2018-05-11 16:14:53 -04:00 committed by Pascal Precht
parent 668a25221f
commit 995b067f63
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

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