* Stop console misleadingly reporting an error if it cannot find a startup commands file

0.6.1-post-fixes
Justin Clarke Casey 2008-11-28 21:09:20 +00:00
parent 4356fc1006
commit 8527f23c59
1 changed files with 4 additions and 7 deletions

View File

@ -170,14 +170,15 @@ namespace OpenSim
}
/// <summary>
///
/// Run an optional startup list of commands
/// </summary>
/// <param name="fileName"></param>
private void RunCommandScript(string fileName)
{
m_log.Info("[COMMANDFILE]: Running " + fileName);
if (File.Exists(fileName))
{
m_log.Info("[COMMANDFILE]: Running " + fileName);
StreamReader readFile = File.OpenText(fileName);
string currentCommand;
while ((currentCommand = readFile.ReadLine()) != null)
@ -189,10 +190,6 @@ namespace OpenSim
}
}
}
else
{
m_log.Error("[COMMANDFILE]: Command script missing. Can not run commands");
}
}
private static void PrintFileToConsole(string fileName)