Merge pull request #478 from pmiossec/display_git_command_on_error

Display git command on error even if not in debug mode
This commit is contained in:
Matt Burke
2013-11-05 04:53:44 -08:00
+4
View File
@@ -55,6 +55,10 @@ namespace Sep.Git.Tfs
e = e.InnerException;
while (e != null)
{
var gitCommandException = e as GitCommandException;
if (gitCommandException != null)
Console.WriteLine("error running command: " + gitCommandException.Process.StartInfo.FileName + " " + gitCommandException.Process.StartInfo.Arguments);
Console.WriteLine(e.Message);
e = e.InnerException;
}