Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPassed curl errors along to the user #165
Conversation
…allowed)
RobWiddick
commented
Mar 3, 2017
•
|
This doesn't really make sense because calling |
|
Do you have a specific recommendation on an alternate way to make sure curl errors make it back to the user? @robertark |
RobWiddick
commented
Mar 3, 2017
•
|
Ah, I see what you mean. This could occur before https://github.com/mmcev106/mailchimp-api/blob/cc0b9f73c51f87157941ca57f33217973d27154b/src/MailChimp.php#L251 That way, in the future, nothing messes up in the Another solution may be to set a new curl property, and check that status in the |
|
I changed when determineSuccess() is called as @robertark suggested, which is definitely a better solution. I believe this reorganization should only affect $this->last_error, and only in the case where curl itself fails with an error. |
|
I am confused about the travis test failures due to the test environment variables not being initialized. I'm not sure how that is supposed to work on travis, but I don't think anything in my commit would have affected it. If anyone can shed light on that, I would much appreciate it. |
|
MailChimp list IDs are set as env vars for unit tests. For some reason when the automated PR check happens those env vars aren't used, so the tests fail. It's not your code - it happens every time. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

mmcev106 commentedJan 16, 2017
•
edited
Passed curl errors along to the user (they were previously getting swallowed)