From 95dca79fc2e18c3a4e33f207c1fcaa7d5b559400 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 4 Aug 2023 11:05:15 +0200 Subject: [PATCH] Output error message in verbose mode before asking for credentials, fixes #11570 --- src/Composer/Util/Git.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index c1da74d42..f8e503d82 100644 --- a/src/Composer/Util/Git.php +++ b/src/Composer/Util/Git.php @@ -223,6 +223,7 @@ class Git } $this->io->writeError(' Authentication required (' . $match[2] . '):'); + $this->io->writeError('' . trim($errorMsg) . '', true, IOInterface::VERBOSE); $auth = [ 'username' => $this->io->ask(' Username: ', $defaultUsername), 'password' => $this->io->askAndHideAnswer(' Password: '),