[longomatch] Log exceptions



commit dc705e50f554a900890bbe1ff4706ebed87ec80e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Aug 24 21:42:36 2011 +0200

    Log exceptions

 LongoMatch/Common/ProjectUtils.cs |    1 +
 LongoMatch/Store/Project.cs       |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Common/ProjectUtils.cs b/LongoMatch/Common/ProjectUtils.cs
index ebc4f75..fd42ab3 100644
--- a/LongoMatch/Common/ProjectUtils.cs
+++ b/LongoMatch/Common/ProjectUtils.cs
@@ -104,6 +104,7 @@ namespace LongoMatch.Common
 				MessagePopup.PopupMessage(window, MessageType.Error,
 				                          Catalog.GetString("Error importing project:")+
 				                          "\n"+ex.Message);
+				Log.Exception(ex);
 				return;
 			}
 
diff --git a/LongoMatch/Store/Project.cs b/LongoMatch/Store/Project.cs
index 87e667a..fe3a2a8 100644
--- a/LongoMatch/Store/Project.cs
+++ b/LongoMatch/Store/Project.cs
@@ -246,7 +246,8 @@ namespace LongoMatch.Store
 			try {
 				return SerializableObject.Load<Project>(file);
 			}
-			catch {
+			catch  (Exception e){
+				Log.Exception (e);
 				throw new Exception(Catalog.GetString("The file you are trying to load " +
 				                                      "is not a valid project"));
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]