X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FExecCmd.php;h=84bb70882cd2fcb24351cdd47888679b30bd79be;hb=34284101c2aa60ec1e824a54de543148aaa28b58;hp=3ea63d00438f2887c8f69ce9c5ee1e3e008adf3f;hpb=861260c111bff72f60665393660b6f5375559510;p=pharext%2Fpharext diff --git a/src/pharext/ExecCmd.php b/src/pharext/ExecCmd.php index 3ea63d0..84bb708 100644 --- a/src/pharext/ExecCmd.php +++ b/src/pharext/ExecCmd.php @@ -87,6 +87,7 @@ class ExecCmd /** * Run the command * @param array $args + * @return \pharext\ExecCmd self * @throws \pharext\Exception */ public function run(array $args = null) { @@ -110,8 +111,10 @@ class ExecCmd } if ($this->status) { - throw new Exception("Command {$this->command} failed ({$this->status})"); + throw new Exception("Command {$exec} failed ({$this->status})"); } + + return $this; } /**