OSDN Git Service

Add error code when run git command
authorFrank Li <lznuaa@gmail.com>
Thu, 24 Dec 2009 07:13:42 +0000 (15:13 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 24 Dec 2009 07:13:42 +0000 (15:13 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/ProgressDlg.cpp

index a0034d5..979108f 100644 (file)
@@ -211,8 +211,10 @@ LRESULT CProgressDlg::OnProgressUpdateUI(WPARAM wParam,LPARAM lParam)
                m_Progress.SetPos(100);\r
                this->DialogEnableWindow(IDOK,TRUE);\r
 \r
+               CString err;\r
+               err.Format(_T("\r\nFailed 0x%x(git return wrong reture code at sometime )\r\n"),m_GitStatus);\r
                if(this->m_GitStatus)\r
-                       InsertColorText(this->m_Log,_T("\r\nFailed\r\n"),RGB(255,0,0));\r
+                       InsertColorText(this->m_Log,err,RGB(255,0,0));\r
                else\r
                        InsertColorText(this->m_Log,_T("\r\nSuccess\r\n"),RGB(0,0,255));\r
 \r