Skip to content

Commit

Permalink
[BREAKING] Replace console.log with process.stderr (#643)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Messages will now be written to stderr instead of stdout.

JIRA: CPOUI5FOUNDATION-802
Related to: SAP/ui5-tooling#701
Sibling of: SAP/ui5-tooling#930,
SAP/ui5-cli#686
  • Loading branch information
d3xter666 authored Feb 29, 2024
1 parent 1135c24 commit d42c79f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sslUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ async function createAndInstallCertificate(keyPath, certPath) {
// the created certificate into the system)
// TODO: Prompt and logging should happen in CLI module rather than server
if (process.platform === "win32") {
/* eslint-disable-next-line no-console */
console.log("Please press allow in the opened dialog to confirm importing the newly created " +
process.stderr.write("Please press allow in the opened dialog to confirm importing the newly created " +
"SSL certificate into the operating system and browsers.");
process.stderr.write("\n");
} else {
/* eslint-disable-next-line no-console */
console.log("Please enter your root password to allow importing the newly created " +
process.stderr.write("Please enter your root password to allow importing the newly created " +
"SSL certificate into the operating system and browsers.");
process.stderr.write("\n");
}

const {key, cert} = await devCert("UI5Tooling");
Expand Down

0 comments on commit d42c79f

Please sign in to comment.