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

Conversation

Nyholm
Copy link
Member
@Nyholm Nyholm commented Jun 7, 2018
Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR na

I understand that this change seams weird. I've just been in a training where 3 sets of eyes did not figure out why the web server did not start.

We where faced with the message:

The web server is already running (listening on http://127.0.0.1:8000).

Which I read as:

There is already an other service listening on port 8000.

I know I have myself to blame for not reading properly. But I feel this could be improved some how. So here is a suggestion. I updated the message and I made it a warning.

@Nyholm
Copy link
Member Author
Nyholm commented Jun 7, 2018

I see that "warning" and "error" both render a big red block.

screen shot 2018-06-07 at 16 02 06

Im revering the change now so it is still an "error".

@fabpot
Copy link
Member
fabpot commented Jun 8, 2018

Thank you @Nyholm.

@fabpot fabpot merged commit b79f38c into symfony:master Jun 8, 2018
fabpot added a commit that referenced this pull request Jun 8, 2018
…ver is already running (Nyholm)

This PR was squashed before being merged into the 4.2-dev branch (closes #27542).

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | na

I understand that this change seams weird. I've just been in a training where 3 sets of eyes did not figure out why the web server did not start.

We where faced with the message:

> The web server is already running (listening on http://127.0.0.1:8000).

Which I read as:

> There is already an other service listening on port 8000.

I know I have myself to blame for not reading properly. But I feel this could be improved some how. So here is a suggestion. I updated the message and I made it a warning.

Commits
-------

b79f38c [WebServerBundle] Improve the error message when web server is already running
@Nyholm Nyholm deleted the webserver-dx branch June 8, 2018 07:42
@Nyholm
Copy link
Member Author
Nyholm commented Jun 8, 2018

Thank you for merging.

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0