phingofficial/phing — pull request #183 by Sthing (2013-01-08 07:33:10+00:00)
Title: Git tasks - pass real error message (2nd version)

I was using the task gitcheckout yesterday, and the task failed with no other message than "Task execution failed". Looking at the source in phing/tasks/ext/git/GitCheckoutTask.php I see that all execution errors are handled by
throw new BuildException('Task execution failed.');
I have changed it to
throw new BuildException('Task execution failed.', $e);

Same treatment applied to all the git tasks.

Thanks to MichaelPhing @ IRC for quick replies.