updated-packages
This commit is contained in:
@@ -84,7 +84,7 @@ class WrappedHttpHandler
|
||||
. ' receiver to Aws\WrappedHttpHandler is not supported.');
|
||||
}
|
||||
|
||||
return Promise\promise_for($fn($request, $options))
|
||||
return Promise\Create::promiseFor($fn($request, $options))
|
||||
->then(
|
||||
function (
|
||||
ResponseInterface $res
|
||||
@@ -171,7 +171,11 @@ class WrappedHttpHandler
|
||||
$parts = ['response' => null];
|
||||
} else {
|
||||
try {
|
||||
$parts = call_user_func($this->errorParser, $err['response']);
|
||||
$parts = call_user_func(
|
||||
$this->errorParser,
|
||||
$err['response'],
|
||||
$command
|
||||
);
|
||||
$serviceError .= " {$parts['code']} ({$parts['type']}): "
|
||||
. "{$parts['message']} - " . $err['response']->getBody();
|
||||
} catch (ParserException $e) {
|
||||
|
Reference in New Issue
Block a user