Skip to content

Commit

Permalink
throw unexpected exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sykorax committed Jul 22, 2019
1 parent 52234b2 commit b55b3a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Internal/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ protected function request($uri, string &$parsedContent = null, $body = [], $hea
}

$response = $exception->getResponse();

if (!$response) {
throw $exception;
}
}

// Parse response.
Expand Down

0 comments on commit b55b3a8

Please sign in to comment.