Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 9919546

Browse files
updated the app file for error handelling
1 parent 67f735a commit 9919546

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ login(config).then(function() {
5151
// eslint-disable-next-line no-undef
5252
} else if (process.argv.length === 2) {
5353
var counter = 0;
54-
return Bluebird.map(types, function(type) {
54+
return Bluebird.map(types, function() {
5555
log.success('Deleting: ' + types[counter])
5656
var deleteModule = require('./lib/delete/' + types[counter]);
5757
counter++
@@ -60,8 +60,6 @@ login(config).then(function() {
6060
concurrency: 1
6161
}).then(function() {}).catch(function(error) {
6262
// eslint-disable-next-line no-console
63-
console.error(error)
64-
// log.error('Failed to migrate stack: ' + config.source_stack + '. Please check error logs for more info');
6563
log.error(error);
6664
});
6765
} else {
@@ -71,6 +69,7 @@ login(config).then(function() {
7169
} else {
7270
// eslint-disable-next-line no-console
7371
console.log("You have Entered Wrong Stack Name");
72+
log.error(err)
7473
return 0;
7574
}
7675
});

0 commit comments

Comments
 (0)