Skip to content

Commit

Permalink
Merge pull request #10 from pryznar/patch-1
Browse files Browse the repository at this point in the history
Forgotten dump, empty result without die();
  • Loading branch information
biscolab authored May 7, 2021
2 parents a99a68a + 5e032d9 commit 7f4fdc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/GoogleMapsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ protected function parseResponse(): GoogleMapsResponse

if ($this->getStatus() != GoogleMapsResponseStatusValues::OK) {
$error_message = 'Something went wrong';
if($this->getStatus() === 'INVALID_REQUEST'){
print_r($array_response);die();}
if (!empty($array_response[GoogleMapsResponseFields::ERROR_MESSAGE])) {
$error_message = $array_response[GoogleMapsResponseFields::ERROR_MESSAGE];
$this->setErrorMessage($error_message);
Expand Down Expand Up @@ -362,4 +360,4 @@ public function setNextPageToken($next_page_token): GoogleMapsResponse
return $this;
}

}
}

0 comments on commit 7f4fdc9

Please sign in to comment.