Skip to content

Commit 0ca41ce

Browse files
authored
Merge pull request #9 from signnow/snapi-9524-fix-storing-of-errors-from-1x
[SNAPI-9524] Fixed storing of errors
2 parents 4353bb1 + 4b5a3b2 commit 0ca41ce

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.4.1] - 2021-09-29
9+
10+
### Fixed
11+
12+
- Fix exception message retrieving from error collection
13+
814
## [v1.4.0] - 2021-08-17
915

1016
### Changed

src/EntityManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function __construct(
8585
$this->serializer = $serializer;
8686
$this->resolver = $resolver;
8787
$this->requestPool = $requestPool ?: new Pool($client);
88+
$this->errors = new Errors();
8889
}
8990

9091
/**
@@ -312,7 +313,7 @@ public function sendRequestPool(int $concurrencyLimit = 5)
312313
}
313314

314315
} catch (PoolException $e) {
315-
$this->errors = $this->requestPool->getErrors();
316+
$this->errors = clone $this->requestPool->getErrors();
316317

317318
throw new EntityManagerException("Request failed!\nReason:\n".$this->errors->getFullMessage());
318319
} finally {

0 commit comments

Comments
 (0)