mirror of
https://github.com/retailcrm/legacy.git
synced 2025-02-16 14:53:16 +03:00
fix api error parse
This commit is contained in:
parent
2b7d0f1436
commit
057de9af6f
@ -28,6 +28,10 @@ class RequestProxy
|
||||
|
||||
if (isset($response['errors'])) {
|
||||
foreach ($response['errors'] as $error) {
|
||||
if (is_array($error)) {
|
||||
$error = @implode(', ', $error);
|
||||
}
|
||||
|
||||
$this->logger->write(
|
||||
"[$method] $error \n",
|
||||
$this->container->errorLog
|
||||
|
Loading…
x
Reference in New Issue
Block a user