Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r286 - trunk/SVN_Notifier/MainForm.cs

svnnotifier
Discussion topic

Back to topic list

svn commit: r286 - trunk/SVN_Notifier/MainForm.cs

Reply

Author vlar
Full name Vlad Rudenko
Date 2009-09-25 06:33:23 PDT
Message Author: vlar
Date: 2009-09-25 06:33:23-0700
New Revision: 286

Modified:
   trunk/SVN_Notifier/MainForm.cs

Log:
Write fatal errors into log file

Modified: trunk/SVN_Notifier/MainForm.cs
Url: http://svnnotifier.t​igris.org/source/bro​wse/svnnotifier/trun​k/SVN_Notifier/MainF​orm.cs?view=diff​&pathrev=286&r1=​285&r2=286
====================​====================​====================​==================
--- trunk/SVN_Notifier/MainForm.cs (original)
+++ trunk/SVN_Notifier/MainForm.cs 2009-09-25 06:33:23-0700
@@ -1290,18 +1290,25 @@
             }
             catch (Exception e)
             {
- ShowError (e.ToString());
+ FatalError (e);
             }
         }
 
 
         private static void OnThreadException (object sender, ThreadExceptionEventArgs t)
         {
- ShowError (t.Exception.ToString());
+ FatalError (t.Exception);
             Application.Exit();
         }
 
 
+ private static void FatalError (Exception e)
+ {
+ ShowError (e.ToString ());
+ Config.WriteLog ("Error", e.ToString ());
+ }
+
+
         private static void ShowError (string s)
         {
             MessageBox.Show (s, "SVN Notifier", MessageBoxButtons.OK, MessageBoxIcon.Error);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r286 - trunk/SVN_Notifier/MainForm.cs vlar Vlad Rudenko 2009-09-25 06:33:23 PDT
Messages per page: