mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Uncommented error throwing
This commit is contained in:
parent
8f1e19f1a2
commit
152cf4c87b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user