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

Diff of /trunk/TSAdminTool/Program.cs

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

--- trunk/TSAdminTool/Program.cs	2012/07/12 16:31:47	54
+++ trunk/TSAdminTool/Program.cs	2012/07/12 16:32:50	55
@@ -28,7 +28,7 @@
                 Logging.ATSAdminLog.Error("Encountered unhandled Exception, but the exception was null");
                 return;
             }
-            if (e.ExceptionObject.GetType() == typeof(SqlException))
+            if (ex.GetType() == typeof(SqlException))
             {
                 SqlException sql_ex = (ex as SqlException);
                 using (log4net.NDC.Push(string.Format("SqlException: ID={0} MESSAGE={1}{2}Diagnostics:{2}{3}", sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))

 

  ViewVC Help
Powered by ViewVC 1.1.22