8000 [WebServerBundle] Improve the error message when web server is already running by Nyholm · Pull Request #27542 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WebServerBundle] Improve the error message when web server is already running #27542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[WebServerBundle] Improve the error message when web server is alread…
…y running
  • Loading branch information
Nyholm authored and fabpot committed Jun 8, 2018
commit b79f38c364f923bd8fb7cfc6fafe3ae635f0d7a1
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
try {
$server = new WebServer();
if ($server->isRunning($input->getOption('pidfile'))) {
$io->error(sprintf('The web server is already running (listening on http://%s).', $server->getAddress($input->getOption('pidfile'))));
$io->error(sprintf('The web server has already been started. It is currently listening on http://%s. Please stop the web server before you try to start it again.', $server->getAddress($input->getOption('pidfile'))));

return 1;
}
Expand Down
0