mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
committed by
Rainer Killinger
parent
f11376ecf8
commit
12b71ba1f1
12
src/cli.ts
12
src/cli.ts
@@ -86,8 +86,12 @@ function onError(error: Error | any) {
|
||||
*/
|
||||
function onListening() {
|
||||
const addr = server.address();
|
||||
const bind = typeof addr === 'string'
|
||||
? 'pipe ' + addr
|
||||
: 'port ' + addr.port;
|
||||
logger.ok('Listening on ' + bind);
|
||||
if (addr === null) {
|
||||
logger.warn('Listening on null');
|
||||
} else {
|
||||
const bind = typeof addr === 'string'
|
||||
? 'pipe ' + addr
|
||||
: 'port ' + addr.port;
|
||||
logger.ok('Listening on ' + bind);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user