From f2d29f5255ed4a5bcae5e25dff3505297c58cb66 Mon Sep 17 00:00:00 2001 From: Jan Pecha Date: Fri, 2 Jun 2017 18:43:43 +0200 Subject: [PATCH] GitRepository: added exit-code to exception message --- src/GitRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitRepository.php b/src/GitRepository.php index 07a31dc..7ff27bf 100644 --- a/src/GitRepository.php +++ b/src/GitRepository.php @@ -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;