Skip to content

Commit

Permalink
Merge branch 'MAR-6868-error-logging' into 'master'
Browse files Browse the repository at this point in the history
[MAR-6868] Resolve MAR-6868 "Error logging"

Closes MAR-6868

See merge request marketplace-team/marketplace-api-client!48
  • Loading branch information
michalsalon-mall committed Sep 23, 2019
2 parents c3f69d8 + d2cf530 commit df26fd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Marketplace API client - change log

## 3.11.4
- fixed 3.11.2

## 3.11.2
- fixed 3.11.1

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "mallgroup/mpapi-client",
"description" : "Mall marketplace API client",
"version" : "3.11.3",
"version" : "3.11.4",
"require" : {
"php" : "^5.5 || ^7.0",
"guzzlehttp/guzzle" : ">=6.2.3",
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Client
*
* @var string
*/
const APPLICATION_NAME = 'mpapic-v3.11.3';
const APPLICATION_NAME = 'mpapic-v3.11.4';

/**
*
Expand Down Expand Up @@ -311,7 +311,7 @@ public function sendRequest($path, $method, array $body = [], array $args = [])
if ($pos !== false) {
// Replace the truncated response with full contents of the body
$message = substr_replace($message, $response . "\n", $pos + 12);
throw new RequestException($message, $e->getCode(), $e);
throw new RequestException($message, $e->getRequest(), $e->getResponse(), $e);
}
}

Expand Down

0 comments on commit df26fd2

Please sign in to comment.