From 3d1aad70b5ffe2bc8d482daab056f6838ab98f11 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 4 Feb 2011 21:44:21 +0100 Subject: [PATCH] push up error messages in all cases Signed-off-by: Sven Strickroth --- src/TortoiseProc/Patch.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/Patch.cpp b/src/TortoiseProc/Patch.cpp index 6e5831ef1..0bd36e87c 100644 --- a/src/TortoiseProc/Patch.cpp +++ b/src/TortoiseProc/Patch.cpp @@ -49,7 +49,10 @@ int CPatch::Send(CString &pathfile,CString &TO,CString &CC,bool bAttachment, boo CMailMsg mapiSender; BOOL bMAPIInit = mapiSender.MAPIInitialize(); if(!bMAPIInit) + { + m_LastError = mapiSender.GetLastErrorMsg(); return -1; + } mapiSender.SetShowComposeDialog(TRUE); mapiSender.SetFrom(g_Git.GetUserEmail()); @@ -146,7 +149,11 @@ int CPatch::Send(CTGitPathList &list,CString &To,CString &CC, CString &subject,b CMailMsg mapiSender; BOOL bMAPIInit = mapiSender.MAPIInitialize(); if(!bMAPIInit) + { + if(errortext) + *errortext = mapiSender.GetLastErrorMsg(); return -1; + } mapiSender.SetShowComposeDialog(TRUE); mapiSender.SetFrom(g_Git.GetUserEmail()); @@ -282,4 +289,4 @@ void CPatch::AddRecipient(CSmtp &mail, CString &tolist, bool isCC) } } } -#endif \ No newline at end of file +#endif -- 2.11.4.GIT