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

--- 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 @@ namespace AnywhereTS
                 #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 @@ namespace AnywhereTS
                 }
                 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));