[longomatch] Make this work when running uninstalled



commit 96cb6d511d9441c668f86d0cfee12887f9182699
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Sep 29 01:01:17 2012 +0200

    Make this work when running uninstalled

 LongoMatch.Services/Services/Core.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 6f8a569..3cd48e0 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -159,7 +159,7 @@ namespace LongoMatch.Services
 				Config.baseDirectory = System.IO.Path.Combine(Config.baseDirectory, "../");
 			}
 			if (!System.IO.Directory.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", "longomatch")))
-				throw new Exception("Aborting: Prefix directory not found");
+				Log.Warning("Prefix directory not found");
 			
 			/* Check for the magic file PORTABLE to check if it's a portable version
 			 * and the config goes in the same folder as the binaries */



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