Skip to content

Commit

Permalink
Show better output for commit errors (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jan 8, 2023
1 parent b2c69e9 commit 9aa4926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,8 @@ protected function commitFiles($msg)
'GIT_COMMITTER_NAME' => $this->githubUserName,
'GIT_COMMITTER_EMAIL' => $this->githubEmail,
])) {
$this->log($this->getLastStdOut(), Message::COMMAND);
$this->log($this->getLastStdErr(), Message::COMMAND);
$this->log($this->getLastStdOut());
$this->log($this->getLastStdErr());
throw new \Exception('Error committing the composer files. They are probably not changed.');
}
$this->commitMessage = $msg;
Expand Down

0 comments on commit 9aa4926

Please sign in to comment.