summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
commit8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch)
tree8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php b/vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php
index 92b447c..da82597 100644
--- a/vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php
+++ b/vendor/aws/aws-sdk-php/src/Api/ErrorParser/JsonParserTrait.php
@@ -16,7 +16,7 @@ trait JsonParserTrait
{
$code = (string) $response->getStatusCode();
if ($this->api
- && $this->api->getMetadata('awsQueryCompatible')
+ && !is_null($this->api->getMetadata('awsQueryCompatible'))
&& $response->getHeaderLine('x-amzn-query-error')
) {
$queryError = $response->getHeaderLine('x-amzn-query-error');