Skip to content

Commit

Permalink
Protect against missing result value (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama authored and webflo committed Jul 27, 2018
1 parent 90f4202 commit fc6bf4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PrestissimoFileFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ protected function fetchWithPrestissimo($version, $destination, $override) {
$result = $multi->getFinishedResults();
$successCnt += $result['successCnt'];
$failureCnt += $result['failureCnt'];
$errors += $result['errors'];
if (isset($result['errors'])) {
$errors += $result['errors'];
}
if ($this->progress) {
foreach ($result['urls'] as $url) {
$this->io->writeError(" - Downloading <comment>$successCnt</comment>/<comment>$totalCnt</comment>: <info>$url</info>", TRUE);
Expand Down

0 comments on commit fc6bf4c

Please sign in to comment.