diff --git a/src/PrestissimoFileFetcher.php b/src/PrestissimoFileFetcher.php index fe8f4d3..30b7c23 100644 --- a/src/PrestissimoFileFetcher.php +++ b/src/PrestissimoFileFetcher.php @@ -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 $successCnt/$totalCnt: $url", TRUE);