diff --git a/src/PrestissimoFileFetcher.php b/src/PrestissimoFileFetcher.php index 30b7c23..34f4797 100644 --- a/src/PrestissimoFileFetcher.php +++ b/src/PrestissimoFileFetcher.php @@ -80,7 +80,9 @@ protected function fetchWithPrestissimo($version, $destination, $override) { $urls = array_keys($errors); if ($urls) { - throw new \Exception('Failed to download ' . implode(", ", $urls)); + // Print the exact errors if verbose mode is turned on. + $url_error_list = $this->io->isVerbose() ? print_r($errors, TRUE) : implode(", ", $urls); + throw new \Exception('Failed to download ' . $url_error_list); } }