We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b87b8b commit 2d6d90dCopy full SHA for 2d6d90d
src/Services/IPApi.php
@@ -73,12 +73,12 @@ public function locate($ip)
73
// Parse body content
74
$json = json_decode($data[0]);
75
if (! is_object($json) || ! property_exists($json, 'status')) {
76
- throw new \RuntimeException("Unexpected ip-api.com response: $json->message");
+ throw new \RuntimeException("Unexpected ip-api.com response: {$json->message}");
77
}
78
79
// Verify response status
80
if ($json->status !== 'success') {
81
- throw new \RuntimeException("Failed ip-api.com response: $json->message");
+ throw new \RuntimeException("Failed ip-api.com response: {$json->message}");
82
83
84
return $this->hydrate([
0 commit comments