Skip to content

Commit

Permalink
add request to exception even for timeouts as we suspect mailchimp to…
Browse files Browse the repository at this point in the history
… be timing out instead of properly returning an error
  • Loading branch information
dannyvankooten committed Dec 24, 2018
1 parent 23a99aa commit 09d8b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/api/class-api-v3-client.php
Expand Up @@ -172,7 +172,7 @@ private function get_headers() {
private function parse_response( $response ) {

if( $response instanceof WP_Error ) {
throw new MC4WP_API_Connection_Exception( $response->get_error_message(), (int) $response->get_error_code() );
throw new MC4WP_API_Connection_Exception( $response->get_error_message(), (int) $response->get_error_code(), $this->last_request );
}

// decode response body
Expand Down

0 comments on commit 09d8b2c

Please sign in to comment.