From 2027d4975a5cf3a077a23d815462bd1fcb43066d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 21 Mar 2024 11:16:56 +0100 Subject: [PATCH] Fail status more softly unless -vvv is used, refs #11889 --- src/Composer/Downloader/FileDownloader.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index a4f13f309..adf26785c 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -524,7 +524,11 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface $this->io = $prevIO; if ($e !== null) { - throw $e; + if ($this->io->isDebug()) { + throw $e; + } + + return 'Failed to detect changes: ['.get_class($e).'] '.$e->getMessage(); } $output = trim($output);