fix: use SCRequestBodyTooLargeError

fixes #20
This commit is contained in:
Wieland Schöbl
2019-02-18 13:10:14 +01:00
committed by Rainer Killinger
parent 12b71ba1f1
commit e70e50a1ea
2 changed files with 10 additions and 11 deletions

View File

@@ -86,12 +86,8 @@ function onError(error: Error | any) {
*/
function onListening() {
const addr = server.address();
if (addr === null) {
logger.warn('Listening on null');
} else {
const bind = typeof addr === 'string'
? 'pipe ' + addr
: 'port ' + addr.port;
logger.ok('Listening on ' + bind);
}
const bind = typeof addr === 'string'
? 'pipe ' + addr
: 'port ' + addr.port;
logger.ok('Listening on ' + bind);
}