ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/Database.cs
(Generate patch)

Comparing trunk/TSAdminTool/Database.cs (file contents):
Revision 127 by william, Sat Jul 14 11:14:09 2012 UTC vs.
Revision 128 by william, Sat Jul 14 13:01:52 2012 UTC

# Line 196 | Line 196 | namespace AnywhereTS
196                  #endregion
197                  return bContinue;
198              }
199 +
200              catch (Exception ex)
201              {
202                  if (ErrorInfo == null)
203                  {
204 <                    ErrorInfo = ex;
204 >                    ErrorInfo = ex.GetBaseException();
205                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ex.GetType().Name, ex.Message, System.Environment.NewLine, ex.ToString())))
206                      {
207                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));
# Line 209 | Line 210 | namespace AnywhereTS
210                  }
211                  else
212                  {
213 +                    ErrorInfo = ErrorInfo.GetBaseException();
214                      using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ErrorInfo.GetType().Name, ErrorInfo.Message, System.Environment.NewLine, ErrorInfo.ToString())))
215                      {
216                          Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines