Skip to content

Throw descriptive API exception messages#354

Open
ivanmitrikeski wants to merge 1 commit into
phpclassic:masterfrom
ivanmitrikeski:master
Open

Throw descriptive API exception messages#354
ivanmitrikeski wants to merge 1 commit into
phpclassic:masterfrom
ivanmitrikeski:master

Conversation

@ivanmitrikeski

Copy link
Copy Markdown

Commit 9b62f4c prevents detailed error messages from being shown.

For example, when an API call returns this response:

{"errors":{"phone":["is invalid"]}}

the exception currently shows only "Request failed with HTTP Code 422".

This makes it hard to see what actually went wrong.

This merge request brings back the previous behaviour and shows a more descriptive error message, such as "Request failed with HTTP Code 422: phone - is invalid".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant