From 3a3e9e190b7f486ea0a6720439c5e223f145320d Mon Sep 17 00:00:00 2001 From: Frank Li Date: Thu, 24 Dec 2009 15:13:42 +0800 Subject: [PATCH] Add error code when run git command Signed-off-by: Frank Li --- src/TortoiseProc/ProgressDlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/ProgressDlg.cpp b/src/TortoiseProc/ProgressDlg.cpp index a0034d550..979108f12 100644 --- a/src/TortoiseProc/ProgressDlg.cpp +++ b/src/TortoiseProc/ProgressDlg.cpp @@ -211,8 +211,10 @@ LRESULT CProgressDlg::OnProgressUpdateUI(WPARAM wParam,LPARAM lParam) m_Progress.SetPos(100); this->DialogEnableWindow(IDOK,TRUE); + CString err; + err.Format(_T("\r\nFailed 0x%x(git return wrong reture code at sometime )\r\n"),m_GitStatus); if(this->m_GitStatus) - InsertColorText(this->m_Log,_T("\r\nFailed\r\n"),RGB(255,0,0)); + InsertColorText(this->m_Log,err,RGB(255,0,0)); else InsertColorText(this->m_Log,_T("\r\nSuccess\r\n"),RGB(0,0,255)); -- 2.11.4.GIT