Skip to content

Commit

Permalink
Fix callback on node & engine copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeertsen committed Jul 11, 2020
1 parent d161086 commit 0953eab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default class Config {
return console.error(err)
}
console.log('---- Copied engines ----')
resolve()
})
} else {
resolve()
Expand Down Expand Up @@ -91,9 +92,11 @@ export default class Config {
if (!fs.existsSync(this._nodesPath)) {
ncp(join(__dirname, '../../../nodes'), this._nodesPath, function (err) {
if (err) {
return console.error(err)
console.error(err)
reject(err)
}
console.log('---- Copied engines ----')
console.log('---- Copied nodes ----')
resolve()
})
} else {
resolve()
Expand All @@ -102,6 +105,7 @@ export default class Config {
if (!fs.existsSync(this._nodesPath)) {
ncp('C:/Users/leege/_pulsar/nodes', this._nodesPath, function (err) {
if (err) {
console.error(err);
reject(err)
// return console.error(err)
}
Expand Down

0 comments on commit 0953eab

Please sign in to comment.