Skip to content

Commit 7052953

Browse files
okonetsapegin
authored andcommitted
Fix: Use more user-friendly message for the EADDRINUSE error (styleguidist#924)
1 parent 4396dc2 commit 7052953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/styleguidist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const command = argv._[0];
2020
process.on('uncaughtException', err => {
2121
if (err.code === 'EADDRINUSE') {
2222
printErrorWithLink(
23-
`You have another server running at port ${config.serverPort} somewhere, shut it down first`,
23+
`Another server is running at port ${
24+
config.serverPort
25+
} already. Please stop it or change the default port to continue.`,
2426
'You can change the port using the `serverPort` option in your style guide config:',
2527
consts.DOCS_CONFIG
2628
);

0 commit comments

Comments
 (0)