Skip to content

Commit 2c7a807

Browse files
committed
fix: error
1 parent 6649151 commit 2c7a807

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ class Server {
519519
}
520520

521521
this.server.on('error', (err) => {
522+
if (err.code === 'EADDRNOTAVAIL') {
523+
this.logger.error(
524+
`Address ${this.hostname} is not available. Try with a different value for "host" option`
525+
);
526+
}
522527
throw err;
523528
});
524529
}

0 commit comments

Comments
 (0)