A small try/catch wrapper to prevent the CLI errors from nuking the sim.

Now will just print the backtrace on the screen and continue.
afrisby
Dalien Talbot 2007-09-08 16:48:52 +00:00
parent 3433f3814a
commit 21227b4fda
1 changed files with 5 additions and 1 deletions

View File

@ -438,7 +438,11 @@ namespace OpenSim.Framework.Console
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
Array.Reverse(tempstrarray); Array.Reverse(tempstrarray);
string[] cmdparams = (string[])tempstrarray; string[] cmdparams = (string[])tempstrarray;
RunCmd(cmd, cmdparams); try {
RunCmd(cmd, cmdparams);
} catch (Exception e) {
MainLog.Instance.Error("Console", "Command failed with exception " + e.ToString());
}
} }
public string LineInfo public string LineInfo