From add40cc8d8e0c2a9355e41f1f2f824aed5e2e619 Mon Sep 17 00:00:00 2001 From: Mikael Meulle Date: Thu, 12 Jul 2018 12:29:56 +0200 Subject: [PATCH] throw an exception in PrestissimoFileFetcher when some files could not be downloaded --- src/PrestissimoFileFetcher.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PrestissimoFileFetcher.php b/src/PrestissimoFileFetcher.php index a1f8e70..af1ae72 100644 --- a/src/PrestissimoFileFetcher.php +++ b/src/PrestissimoFileFetcher.php @@ -73,6 +73,9 @@ protected function fetchWithPrestissimo($version, $destination, $override) { } } } while ($multi->remain()); + if ($failureCnt > 0) { + throw new \Exception("$failureCnt drupal scaffold files could not be downloaded"); + } } }