You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2019. It is now read-only.
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.
0 commit comments