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
parent
3433f3814a
commit
21227b4fda
|
@ -438,7 +438,11 @@ namespace OpenSim.Framework.Console
|
|||
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
|
||||
Array.Reverse(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
|
||||
|
|
Loading…
Reference in New Issue