mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-08 21:34:55 +00:00
Uncommented error throwing
This commit is contained in:
parent
47168e5437
commit
15884309e5
@ -53,7 +53,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