mirror of https://github.com/embarklabs/embark.git
Uncommented error throwing
This commit is contained in:
parent
668a25221f
commit
995b067f63
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue