Skip to content

Commit

Permalink
Fix: stdout clear on SAP Wizard UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jberthe committed Oct 29, 2020
1 parent 833990b commit 2ef2d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = class extends Generator {
}
}, (error, response, body) => {
if (response) {
process.stdout.clearLine();
this.log("\u001b[2J\u001b[0;0H");

var data = JSON.parse(response.toJSON().body);
var tService = [];
Expand All @@ -110,7 +110,7 @@ module.exports = class extends Generator {
});
resolve(tService.sort());
} else {
process.stdout.clearLine();
this.log("\u001b[2J\u001b[0;0H");
this.log.write(chalk.red.white('Error connection to server: ' + answer.ODataServer + "\n\r"));
resolve([]);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ef2d19

Please sign in to comment.