mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
Uncommented error throwing
This commit is contained in:
parent
c3cae28c66
commit
ae2965b416
@ -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…
x
Reference in New Issue
Block a user