From 3b4b16d133d663cbba716c8ef5d160bf05bd66ba Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Mon, 4 Nov 2013 10:57:05 +0100 Subject: [PATCH] Display git command on error even if not in debug mode Should help the user to better understand the problem (and improve issue report) --- GitTfs/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GitTfs/Program.cs b/GitTfs/Program.cs index 00915da0..c1d31fd9 100644 --- a/GitTfs/Program.cs +++ b/GitTfs/Program.cs @@ -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; }