mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 14:06:10 +00:00
Uncommented error throwing
This commit is contained in:
parent
cbebc4aad9
commit
ed252172fe
@ -57,7 +57,7 @@ class ScaffoldingReact {
|
|||||||
const filename = contract.className.toLowerCase() + '.' + extension;
|
const filename = contract.className.toLowerCase() + '.' + extension;
|
||||||
const filePath = './app/' + filename;
|
const filePath = './app/' + filename;
|
||||||
if (fs.existsSync(filePath)){
|
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);
|
const templatePath = fs.embarkPath('lib/modules/scaffolding-react/templates/' + templateFilename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user