Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Как мне вывести коды ошибок после запроса ? #2

@newusersss

Description

@newusersss

``$this->task(
'thumbs',
[
'url' => $url,
'curl_config' => [

						CURLOPT_RETURNTRANSFER => true,
						CURLOPT_BINARYTRANSFER => true,
					],
					'max_request' => 10,
					'sleep' => [1, 0.1, true],
				]
			);`

`
При ошибке 404 срабатывает taskException и я не могу получить код ошибки в :

// при ошибки данный блок не выводится
public function tasktTumbs($parser, $task, $content)
{
echo $content; // код ошибки.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions