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.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
|
||||||
Array.Reverse(tempstrarray);
|
Array.Reverse(tempstrarray);
|
||||||
string[] cmdparams = (string[])tempstrarray;
|
string[] cmdparams = (string[])tempstrarray;
|
||||||
|
try {
|
||||||
RunCmd(cmd, cmdparams);
|
RunCmd(cmd, cmdparams);
|
||||||
|
} catch (Exception e) {
|
||||||
|
MainLog.Instance.Error("Console", "Command failed with exception " + e.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string LineInfo
|
public string LineInfo
|
||||||
|
|
Loading…
Reference in New Issue