Verified Commit 598322b6 authored by Aral Balkan's avatar Aral Balkan
Browse files

Update console output based on changed in nodecert

parent 4bfdc17c
...@@ -31,10 +31,6 @@ if (!fs.existsSync(pathToServe)) { ...@@ -31,10 +31,6 @@ if (!fs.existsSync(pathToServe)) {
process.exit(1) process.exit(1)
} }
// Leave a space between the command prompt and any output from us.
// (Because whitespace rocks.)
console.log('')
// //
// If the requested port is < 1024 ensure that we can bind to it. Note: this is // If the requested port is < 1024 ensure that we can bind to it. Note: this is
// only an issue on Linux systems. As of macOS Mojave, privileged ports are // only an issue on Linux systems. As of macOS Mojave, privileged ports are
...@@ -91,7 +87,7 @@ try { ...@@ -91,7 +87,7 @@ try {
if (serverPort !== 443) { if (serverPort !== 443) {
portSuffix = `:${serverPort}` portSuffix = `:${serverPort}`
} }
console.log(`\n 🎉 Serving ${pathToServe} on https://localhost${portSuffix}\n`) console.log(` 🎉 Serving ${pathToServe} on https://localhost${portSuffix}\n`)
}) })
} catch (error) { } catch (error) {
console.log('\nError: could not start server', error) console.log('\nError: could not start server', error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment