• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/google/httpquery.php
  • Класс: BitrixCalendarSyncGoogleHttpQuery
  • Вызов: HttpQuery::prepareErrorForDebug
private function prepareErrorForDebug($response): string
{
	try
	{
		$response = BitrixMainWebJson::decode($response);
	}
	catch (Exception $e){}

	if (
		(!$response || !is_array($response))
		|| ($this->client->getStatus() < 400)
	)
	{
		return '';
	}

	return $response['error']['code'] . " " . $response['error']['message'] . "; ";
}