diff --git a/src/Composer/IO/ConsoleIO.php b/src/Composer/IO/ConsoleIO.php index 0ab617a94..7de4d8ede 100644 --- a/src/Composer/IO/ConsoleIO.php +++ b/src/Composer/IO/ConsoleIO.php @@ -197,7 +197,12 @@ class ConsoleIO extends BaseIO if ($newline) { $this->doWrite('', true, $stderr); } - $this->lastMessage = $messages; + + if ($stderr) { + $this->lastMessageErr = $messages; + } else { + $this->lastMessage = $messages; + } } /**