Skip to content

Commit

Permalink
Check for unknown network error.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabzIt committed Feb 23, 2017
1 parent df38564 commit d83e714
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/GrabzItClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,11 @@ private function Post($url, $parameters)
{
$this->checkResponseHeader($http_response_header);
}

if ($response === FALSE)
{
throw new GrabzItException("An unknown network error occured.", GrabzItException::NETWORK_GENERAL_ERROR);
}

return $response;
}
Expand Down

0 comments on commit d83e714

Please sign in to comment.