Make errors reported by OpenSim when it halts because it can't find certain config sections or files a bit more user friendly.

This commit is contained in:
Justin Clark-Casey (justincc)
2012-01-24 22:35:55 +00:00
parent 8e0eaa980f
commit 2d0412d366
3 changed files with 12 additions and 20 deletions

View File

@@ -126,11 +126,10 @@ namespace OpenSim.Server.Base
m_Config = new IniConfigSource(iniFile);
}
}
catch (Exception)
catch (Exception e)
{
System.Console.WriteLine("Error reading from config source {0}",
iniFile);
Thread.CurrentThread.Abort();
System.Console.WriteLine("Error reading from config source. {0}", e.Message);
Environment.Exit(1);
}
// Merge the configuration from the command line into the