From 21227b4fdaa82b93770edfce8c6ec8f2ab187196 Mon Sep 17 00:00:00 2001 From: Dalien Talbot Date: Sat, 8 Sep 2007 16:48:52 +0000 Subject: 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. --- OpenSim/Framework/Console/LogBase.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs index 119c2cd..9e2f379 100644 --- a/OpenSim/Framework/Console/LogBase.cs +++ b/OpenSim/Framework/Console/LogBase.cs @@ -438,7 +438,11 @@ namespace OpenSim.Framework.Console Array.Resize(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 -- cgit v1.1