Skip to content
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

Instead of hardcoded error message using actual messages would be incredible #68

Closed
Meeshalk opened this issue Apr 14, 2022 · 2 comments

Comments

@Meeshalk
Copy link

throw new APIException('HTTP Response Not OK', $_httpContext);

@djoleeeee
Copy link

You can use: getResponseBody()

catch (\Pipedrive\APIException $e) {
echo $e->getResponseBody());
}

@Meeshalk
Copy link
Author

@djoleeeee this gives an hard coded error message. HTTP Response Not OK
Which is useless in many cases, specially in debugging.

@Meeshalk Meeshalk closed this as completed Aug 3, 2022
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

No branches or pull requests

2 participants