/[gr2lib]/trunk/gr2lib_UnitTest/Program.cs
ViewVC logotype

Diff of /trunk/gr2lib_UnitTest/Program.cs

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

--- trunk/gr2lib_UnitTest/Program.cs	2010/07/17 14:52:37	106
+++ trunk/gr2lib_UnitTest/Program.cs	2010/07/17 14:52:47	107
@@ -12,6 +12,7 @@
 using System.Runtime.CompilerServices;
 using gr2lib.core.header;
 using System.Windows.Forms;
+using System.Diagnostics;
 
 namespace gr2lib_UnitTest
 {
@@ -321,18 +322,20 @@
 
             catch (granny2apiloadexception ex)
             {
-                Console.WriteLine(ex.Message);
+                StackTrace st = new StackTrace(true);
+                Granny2ExceptionWriter.WriteToConsole(ex,st);
             }
             catch (Exception ex)
             {
+                StackTrace st = new StackTrace(true);
                 RuntimeWrappedException rwe = ex as RuntimeWrappedException;
                 if (rwe != null)
                 {
-                    Console.WriteLine(rwe.ToString());
+                    Granny2ExceptionWriter.WriteToConsole(rwe, st);
                 }
                 else
                 {
-                    Console.WriteLine(ex.Message);
+                    Granny2ExceptionWriter.WriteToConsole(ex,st);
                 }
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22