Skip to content

Commit 314067b

Browse files
committed
Added FastSpring's response to exception thrown by the library's requests.
1 parent 0bac04a commit 314067b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FastSpring.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private function request(string $method, string $endpoint, $payload = null)
4747
return is_string($response) ? json_decode($response, true) : $response;
4848
}
4949

50-
throw new \Exception(sprintf('Error %s reported by FastSpring\'s API for your %s request to the "%s" endpoint', $info['http_code'], $method, $endpoint));
50+
throw new \Exception(sprintf('Error %s reported by FastSpring\'s API for your %s request to the "%s" endpoint. Response: %s', $info['http_code'], $method, $endpoint, json_encode($response)));
5151
}
5252

5353
protected static function instance()

0 commit comments

Comments
 (0)