Skip to content

Commit

Permalink
GitRepository: added exit-code to exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Jun 2, 2017
1 parent bda856c commit f2d29f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ protected function run($cmd/*, $options = NULL*/)

if($ret !== 0)
{
throw new GitException("Command '$cmd' failed.");
throw new GitException("Command '$cmd' failed (exit-code $ret).", $ret);
}

return $this;
Expand Down

0 comments on commit f2d29f5

Please sign in to comment.