minor #226 Intercept and customize error from Guzzle (emil-nasso)
minor #226 Intercept and customize error from Guzzle (emil-nasso)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Intercept and customize error from Guzzle

When guzzle is initalized it tries to find a suitable handler to use. If no handler can be found (for example curl) an exception is thrown.

With this change we try to find the handler before creating the client so that we can pass the handler to the client manually.
Doing this, we are able to customize the error message to make it (potentially) less confusing for the users who might have no idea what guzzle is.

The issue was found when looking at PR #200

Commits
-------

951732b Intercept and customize error from Guzzle When guzzle is initalized it tried to find a suitable handler to use. If no handler can be found (for example curl) an exception is thrown. With this change we try to find the handler before creating the client so we can pass the handler to the client manually. Doing this, we are able to customize the error message to make it (potentially) less confusing for the users who might have no idea what guzzle is.

javiereguiluz/symfony-installer,symfony/symfony-installer