/[AnywhereTS-MSSQL]/trunk/TSAdminTool/Database.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/Database.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/Database.cs	2012/07/14 11:46:04	127
+++ trunk/TSAdminTool/Database.cs	2012/07/14 13:01:52	128
@@ -196,11 +196,12 @@
                 #endregion
                 return bContinue;
             }
+
             catch (Exception ex)
             {
                 if (ErrorInfo == null)
                 {
-                    ErrorInfo = ex;
+                    ErrorInfo = ex.GetBaseException();
                     using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ex.GetType().Name, ex.Message, System.Environment.NewLine, ex.ToString())))
                     {
                         Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));
@@ -209,6 +210,7 @@
                 }
                 else
                 {
+                    ErrorInfo = ErrorInfo.GetBaseException();
                     using (log4net.NDC.Push(string.Format("{0}: MESSAGE={1}{2}Diagnostics:{2}{3}", ErrorInfo.GetType().Name, ErrorInfo.Message, System.Environment.NewLine, ErrorInfo.ToString())))
                     {
                         Logging.ATSAdminLog.Error(string.Format("Failed to setup database: {0}", ATSGlobals.strDatabaseName));

 

  ViewVC Help
Powered by ViewVC 1.1.22