Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Fixed some issues for the self-update command #276

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

smatyas
Copy link
Contributor

@smatyas smatyas commented Sep 2, 2016

Currently, the self-update command does not return an alerting enough exit message or status code on permission errors.
I saw in the code that it was intended, but it did not work well enough.

This PR fixes this issue by modifying the thrown exception type in certain cases, and by making the fallback exception to return error code 1, and by coloring the rollback message.

Before:
image

After:
image

@smatyas smatyas force-pushed the improving-self-update-errors branch from c61de7c to d9fe40b Compare September 2, 2016 14:44
…rollback message, set return code at general exception handling, fixed an undefined variable notice.
@smatyas smatyas force-pushed the improving-self-update-errors branch from d9fe40b to ab6cce2 Compare September 20, 2016 08:32
@javiereguiluz
Copy link
Member

@smatyas it took us some time ... but this is finally merged! thanks for working on it.

@javiereguiluz javiereguiluz merged commit ab6cce2 into symfony:master Sep 30, 2016
javiereguiluz added a commit that referenced this pull request Sep 30, 2016
This PR was merged into the 1.0-dev branch.

Discussion
----------

Fixed some issues for the self-update command

Currently, the `self-update` command does not return an alerting enough exit message or status code on permission errors.
I saw in the code that it was intended, but it did not work well enough.

This PR fixes this issue by modifying the thrown exception type in certain cases, and by making the fallback exception to return error code 1, and by coloring the rollback message.

Before:
![image](https://cloud.githubusercontent.com/assets/534550/18207370/447a9004-712b-11e6-99f9-78bc05529dc9.png)

After:
![image](https://cloud.githubusercontent.com/assets/534550/18207382/5530b4be-712b-11e6-9763-e18fe4fdf6cf.png)

Commits
-------

ab6cce2 Fixed some issues for the self-update command: added coloring to the rollback message, set return code at general exception handling, fixed an undefined variable notice.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants