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: '),