Skip to content

Commit 30450ae

Browse files
committed
Update composer.json
1 parent d014ca7 commit 30450ae

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ jobs:
4040
configuration: phpunit.xml
4141
ssh_key: ${{ secrets.ssh_key }}
4242
ssh_key_pub: ${{ secrets.ssh_key_pub }}
43+
44+
- name: Capture PHPUnit Logs
45+
run: cat ./build/logs/junit.xml

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to `shopware-php-sdk` will be documented in this file.
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
### 2.3.0
8+
- feat: adding the previous exception to the ShopwareResponseException when it's mapped in Client
9+
- fix: catching the ShopwareResponseException in AdminAuthenticator since a BadResponseException always gets mapped to it in Client::handleException()
10+
711
### 2.2.0
812
- Compatibility with Shopware 6.6.10.0
913
- Update Criteria to support partial loading (Criteria.addFields)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A PHP SDK for Shopware 6 Platform",
44
"type": "library",
55
"license": "MIT",
6-
"version": "2.2.0",
6+
"version": "2.3.0",
77
"authors": [
88
{
99
"name": "vin",

src/Client/AdminAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function fetchAccessToken(): AccessToken
6262
]);
6363
} catch (ShopwareResponseException $exception) {
6464
throw new AuthorizationFailedException(
65-
$exception->getResponse()->getBody()->getContents(),
65+
$exception->getMessage(),
6666
$exception->getCode(),
6767
$exception
6868
);

0 commit comments

Comments
 (0)